Merge remote-tracking branch 'origin/merge-requests/60'
* origin/merge-requests/60: umount without sleep, as umount -l detaches inmediately umount lazily to avoid race conditions
This commit is contained in:
commit
2767ea5b5e
3
common
3
common
@ -42,8 +42,9 @@ chroot_setup() {
|
|||||||
|
|
||||||
chroot_teardown() {
|
chroot_teardown() {
|
||||||
if (( ${#CHROOT_ACTIVE_MOUNTS[@]} )); then
|
if (( ${#CHROOT_ACTIVE_MOUNTS[@]} )); then
|
||||||
umount "${CHROOT_ACTIVE_MOUNTS[@]}"
|
umount -l "${CHROOT_ACTIVE_MOUNTS[@]}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
unset CHROOT_ACTIVE_MOUNTS
|
unset CHROOT_ACTIVE_MOUNTS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user