Explorar el Código

Umount only mountpoints under $rootfs, not $rootfs itself

Fixes #3
Jakub Jirutka hace 6 años
padre
commit
cc02159d9b
Se han modificado 1 ficheros con 1 adiciones y 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
 }