Skip to content

Commit f285712

Browse files
leahneukirchenthe-maldridge
authored andcommitted
use umount -R to unmount recursively bound mounts
1 parent 4debf48 commit f285712

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

lib.sh.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ umount_pseudofs() {
9999
# contingency where the psuedofs mounts are not present.
100100
if [ -d "${ROOTFS}" ]; then
101101
for f in dev proc sys; do
102-
umount -f "$ROOTFS/$f" >/dev/null 2>&1
102+
umount -R -f "$ROOTFS/$f" >/dev/null 2>&1
103103
done
104104
fi
105105
umount -f "$ROOTFS/tmp" >/dev/null 2>&1

mklive.sh.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ mount_pseudofs() {
5151
done
5252
}
5353
umount_pseudofs() {
54-
umount -f "$ROOTFS"/sys >/dev/null 2>&1
55-
umount -f "$ROOTFS"/dev >/dev/null 2>&1
56-
umount -f "$ROOTFS"/proc >/dev/null 2>&1
54+
umount -R -f "$ROOTFS"/sys >/dev/null 2>&1
55+
umount -R -f "$ROOTFS"/dev >/dev/null 2>&1
56+
umount -R -f "$ROOTFS"/proc >/dev/null 2>&1
5757
}
5858
error_out() {
5959
umount_pseudofs

0 commit comments

Comments
 (0)