Skip to content

Commit 9708d22

Browse files
committed
mklive: check if pseudofs exists before umounting it
1 parent 63c1152 commit 9708d22

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mklive.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ mount_pseudofs() {
5252
}
5353
umount_pseudofs() {
5454
for f in sys dev proc; do
55-
if ! umount -R -f "$ROOTFS/$f"; then
55+
if [ -d "$ROOTFS/$f" ] && ! umount -R -f "$ROOTFS/$f"; then
5656
info_msg "ERROR: failed to unmount $ROOTFS/$f/"
5757
return 1
5858
fi

0 commit comments

Comments
 (0)