From: Rhett Date: Sun, 1 Sep 2013 01:18:41 +0000 (-0700) Subject: Flush and unmount disk image after copy X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=a3a2daf59d48eda05963001b8e2fd417b102b132;p=arcanos.git Flush and unmount disk image after copy --- diff --git a/tools/copy_to_image.sh b/tools/copy_to_image.sh index b795b51..2765e6e 100755 --- a/tools/copy_to_image.sh +++ b/tools/copy_to_image.sh @@ -8,3 +8,7 @@ else sudo mount /dev/loop2 mnt fi cp -v obj/kern/kernel mnt/kernel + sync + sudo umount /dev/loop2 + sudo losetup -d /dev/loop2 + sudo losetup -d /dev/loop1