Explorar o código

Umount only mountpoints under $rootfs, not $rootfs itself

Fixes #3
Jakub Jirutka %!s(int64=6) %!d(string=hai) anos
pai
achega
cc02159d9b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      alpine-make-rootfs

+ 1 - 1
alpine-make-rootfs

@@ -208,7 +208,7 @@ umount_recursively() {
 
 	cat /proc/mounts \
 		| cut -d ' ' -f 2 \
-		| { grep "^$mount_point" || true; } \
+		| { grep "^$mount_point/" || true; } \
 		| sort -r \
 		| xargs -r -n 1 umount
 }