Bladeren bron

Use --make-rslave to avoid stuck mounts

Without `rslave` mounts can get stuck due to "Device or Resource Busy" errors
Tim Sandquist 3 jaren geleden
bovenliggende
commit
eb8167df6c
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  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