Commit 6437dae0 authored by aTc's avatar aTc

fix losetup, detach device instead of image file

parent 547e679e
......@@ -157,6 +157,6 @@ echo "Syncing"
sync
umount rootfs/boot
umount rootfs
if [[ -n "$DISKIMAGE" ]] ; then losetup -d $DISKIMAGE ; fi
if [[ -n "$DISKIMAGE" ]] ; then losetup -d $DISK ; fi
rm rootfs -rf
echo "Done"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment