since udev/systemd v241 udev actively ignores requests if it detects
running in a chroot environment[0], as we do exactly this in our
setup process we need to tell udev that it is OK and we know what we
do, so set SYSTEMD_IGNORE_CHROOT=1 which makes the
"running_in_chroot" function lie[1].
[0]: https://github.com/systemd/systemd/commit/
c494b739a47359ab2697482f52545e2a6d1c86ad
[1]: https://github.com/systemd/systemd/blob/v241/src/basic/virt.c#L607
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin
+# ensure udev isn't snippy and ignores our request
+export SYSTEMD_IGNORE_CHROOT=1
+
mount -n -t proc proc /proc
mount -n -t sysfs sysfs /sys