From a3a2daf59d48eda05963001b8e2fd417b102b132 Mon Sep 17 00:00:00 2001 From: Rhett Date: Sat, 31 Aug 2013 18:18:41 -0700 Subject: [PATCH] Flush and unmount disk image after copy --- tools/copy_to_image.sh | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.34.1