Procházet zdrojové kódy

Use --make-rslave to avoid stuck mounts

Without `rslave` mounts can get stuck due to "Device or Resource Busy" errors
Tim Sandquist před 3 roky
rodič
revize
eb8167df6c
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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