usr_sbin/grml2ram: Fix a couple of shellcheck warnings
[grml-scripts.git] / usr_sbin / grml-chroot
index a894e39..e8ed430 100755 (executable)
@@ -98,6 +98,12 @@ else
     mountit "sysfs" "sys"
     mountit "/dev"   "dev"   "--bind"
     mountit "devpts" "dev/pts"
+    if [ -d /sys/firmware/efi/efivars ] ; then
+      mountit "efivarfs" "sys/firmware/efi/efivars"
+    fi
+    if [ -d "$DEST_"/run/udev ] && [ -d /run/udev ] ; then
+      mountit "/run/udev" "/run/udev" "--bind"
+    fi
 fi
 
 WROTE_DEBIAN_CHROOT=""