grml-chroot: bind-mount /run/udev in target system as workaround for lvm2 issue ...
authorMichael Prokop <mika@grml.org>
Fri, 18 Jan 2019 13:13:47 +0000 (14:13 +0100)
committerMichael Prokop <mika@grml.org>
Fri, 18 Jan 2019 13:13:47 +0000 (14:13 +0100)
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.

usr_sbin/grml-chroot

index a894e39..3b27505 100755 (executable)
@@ -98,6 +98,9 @@ else
     mountit "sysfs" "sys"
     mountit "/dev"   "dev"   "--bind"
     mountit "devpts" "dev/pts"
     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=""
 fi
 
 WROTE_DEBIAN_CHROOT=""