From dced05a84735ce135fb7deace7e28e6384e68b51 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 21 Apr 2015 07:57:29 +0200 Subject: explicitly detach loop device on umount I see cases where a stale loop device stays around and fills up my partition as image file is still in use and does not get unlinked. Explicitly detach loop device on umount to fix that. Signed-off-by: Christian Hesse --- archiso/mkarchiso | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'archiso/mkarchiso') diff --git a/archiso/mkarchiso b/archiso/mkarchiso index 0da02b0..bc82786 100755 --- a/archiso/mkarchiso +++ b/archiso/mkarchiso @@ -59,7 +59,7 @@ _mount_airootfs() { _umount_airootfs() { _msg_info "Unmounting '${work_dir}/mnt/airootfs'" - umount "${work_dir}/mnt/airootfs" + umount -d "${work_dir}/mnt/airootfs" _msg_info "Done!" rmdir "${work_dir}/mnt/airootfs" trap - EXIT HUP INT TERM -- cgit v1.2.3-70-g09d2