]> git.proxmox.com Git - pve-installer.git/commitdiff
tell udev to ignore being in a chroot
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 25 Mar 2019 18:47:05 +0000 (19:47 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 25 Mar 2019 18:48:49 +0000 (19:48 +0100)
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>
unconfigured.sh

index ac8fa4542f2f071da6f64c124063c203522bc84a..450dc22e0d22da2836d3395fa7d99b7d8ebf5a73 100755 (executable)
@@ -57,6 +57,9 @@ echo "Starting Proxmox installation"
 
 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