DescriptionAdd a safe_unmount function and use it in enter_chroot.
The safe_unmount function first tries a regular unmount, If that
fails it warns and tries a lazy unmount. If the lazy unmount fails
it dies.
Both unmounts take the -d option in case the mount is a loop device.
BUG=None
TEST=Entered and exited multiple chroots
Patch Set 1 #
Total comments: 2
Patch Set 2 : Don't rely on $? #
Messages
Total messages: 4 (0 generated)
|