From 74367b9f37596ec5c775c4e44a3ecf45366a2232 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Fri, 18 Jan 2019 14:13:47 +0100 Subject: [PATCH] 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. --- usr_sbin/grml-chroot | 3 +++ 1 file changed, 3 insertions(+) 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="" -- 2.1.4