From: Thomas Lamprecht Date: Mon, 25 Mar 2019 18:47:05 +0000 (+0100) Subject: tell udev to ignore being in a chroot X-Git-Url: https://git.proxmox.com/?p=pve-installer.git;a=commitdiff_plain;h=194d737a431e8602607bc8fffff8c19df4525e85 tell udev to ignore being in a chroot 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 --- diff --git a/unconfigured.sh b/unconfigured.sh index ac8fa45..450dc22 100755 --- a/unconfigured.sh +++ b/unconfigured.sh @@ -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