From 68f5217346d6a2da96ce13408682e081193b7b26 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 28 May 2015 08:59:41 +0200 Subject: explicitly detach loop device on umount and silent losetup error Umount detaches the loop device automatically, but let's make it explicit to be sure. Additionally losetup gives: losetup: /dev/loop0: detach failed: No such device or address This is kind of expected, let's silent the error message. Signed-off-by: Christian Hesse --- hooks/archiso | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hooks/archiso') diff --git a/hooks/archiso b/hooks/archiso index fcfe820..23459e7 100644 --- a/hooks/archiso +++ b/hooks/archiso @@ -182,7 +182,7 @@ archiso_mount_handler() { fi if [[ "${copytoram}" == "y" ]]; then - umount /run/archiso/bootmnt + umount -d /run/archiso/bootmnt fi } -- cgit v1.2.3-70-g09d2