Skip to content

Commit

Permalink
xchroot: add '-l' to umount
Browse files Browse the repository at this point in the history
  • Loading branch information
emmett1 committed Mar 5, 2020
1 parent c8b2eca commit 8e8c62d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions xchroot
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@ retval=$?
mv $TARGET/etc/resolv.conf.tmp $TARGET/etc/resolv.conf
}

umount $TARGET/dev/pts
umount $TARGET/dev
umount $TARGET/run
umount $TARGET/proc
umount -l $TARGET/dev/pts
umount -l $TARGET/dev
umount -l $TARGET/run
umount -l $TARGET/proc
if [ -n "$EFI_SYSTEM" ]; then
umount $TARGET/sys/firmware/efi/efivars
umount -l $TARGET/sys/firmware/efi/efivars
fi
umount $TARGET/sys
umount -l $TARGET/sys

exit $retval

0 comments on commit 8e8c62d

Please sign in to comment.