From: Michael Prokop Date: Fri, 18 Jan 2019 13:13:47 +0000 (+0100) Subject: grml-chroot: bind-mount /run/udev in target system as workaround for lvm2 issue ... X-Git-Tag: v2.8.4~4 X-Git-Url: http://git.grml.org/?p=grml-scripts.git;a=commitdiff_plain;h=74367b9f37596ec5c775c4e44a3ecf45366a2232 grml-chroot: bind-mount /run/udev in target system as workaround for lvm2 issue #918590 Anything related to LVM tools takes ages with lvm 2.03.02-1 if /run/udev isn't available in the target system, causing messages like: | WARNING: Device /dev/[...] not initialized in udev database even after waiting 10000000 microseconds. This /run/udev bind-mount is a workaround required for Debian/buster's lvm2, at least until #918590 is resolved. --- diff --git a/usr_sbin/grml-chroot b/usr_sbin/grml-chroot index a894e39..3b27505 100755 --- a/usr_sbin/grml-chroot +++ b/usr_sbin/grml-chroot @@ -98,6 +98,9 @@ else mountit "sysfs" "sys" mountit "/dev" "dev" "--bind" mountit "devpts" "dev/pts" + if [ -d "$DEST_"/run/udev ] && [ -d /run/udev ] ; then + mountit "/run/udev" "/run/udev" "--bind" + fi fi WROTE_DEBIAN_CHROOT=""