Parcourir la source

Use --make-rslave to avoid stuck mounts

Without `rslave` mounts can get stuck due to "Device or Resource Busy" errors
Tim Sandquist il y a 3 ans
Parent
commit
eb8167df6c
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      lib.sh.in

+ 1 - 1
lib.sh.in

@@ -82,7 +82,7 @@ mount_pseudofs() {
             # pseudofs isn't already mounted.  If it already is then
             # this is virtually impossible to troubleshoot because it
             # looks like the subsequent umount just isn't working.
-            mount -r --rbind /$f "$ROOTFS/$f"
+            mount -r --rbind /$f "$ROOTFS/$f" --make-rslave
         fi
     done
     if ! mountpoint -q "$ROOTFS/tmp" ; then