mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2025-02-02 03:48:27 +00:00
Avoid proceeding to umount if a bind_mount is busy and close is not slamming.
This commit is contained in:
parent
88c51f89f0
commit
4788ee6834
9
tomb
9
tomb
@ -2392,12 +2392,11 @@ umount_tomb() {
|
||||
sudo umount $bind_mount || {
|
||||
[[ -n $SLAM ]] && {
|
||||
_success "Slamming tomb: killing all processes using this hook."
|
||||
slam_tomb "$bind_mount"
|
||||
[[ $? == 1 ]] && {
|
||||
_failure "Cannot slam the bind hook ::1 hook::" $bind_mount }
|
||||
umount $bind_mount
|
||||
slam_tomb "$bind_mount" || _failure "Cannot slam the bind hook ::1 hook::" $bind_mount
|
||||
umount $bind_mount || _failure "Cannot slam the bind hook ::1 hook::" $bind_mount
|
||||
} || {
|
||||
_warning "Tomb bind hook ::1 hook:: is busy, cannot close tomb." $bind_mount }
|
||||
_failure "Tomb bind hook ::1 hook:: is busy, cannot close tomb." $bind_mount
|
||||
}
|
||||
}
|
||||
done
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user