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:
Morten Linderud 2024-04-07 20:04:36 +02:00
commit 2767ea5b5e
No known key found for this signature in database
GPG Key ID: 9C02FF419FECBE16

3
common
View File

@ -42,8 +42,9 @@ chroot_setup() {
chroot_teardown() {
if (( ${#CHROOT_ACTIVE_MOUNTS[@]} )); then
umount "${CHROOT_ACTIVE_MOUNTS[@]}"
umount -l "${CHROOT_ACTIVE_MOUNTS[@]}"
fi
unset CHROOT_ACTIVE_MOUNTS
}