From 10abad1c4e005e6ddd9a59fada07720e42227486 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Fri, 4 May 2012 07:26:53 +0000 Subject: setup-bootable: fix syncing and remount as rw we sync on cleanup and wait before remounting as rw --- setup-bootable.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup-bootable.in b/setup-bootable.in index 503a47b..70f20e7 100644 --- a/setup-bootable.in +++ b/setup-bootable.in @@ -9,6 +9,8 @@ cleanup() { if [ -n "$uninstalls" ]; then apk del -q syslinux fi + sync + sleep 1 for i in $read_only_mounts; do mount -o remount,ro "$i" done @@ -205,6 +207,7 @@ elif [ -n "$srcurl" ]; then cd "$destdir"/.new ${WGET:-wget} -O - "$srcurl" | uniso \ || die "Failed to download or extract $srcurl" + echo "" fi # make sure files are really there before we replace existing @@ -246,7 +249,6 @@ fi # cleanup [ -z "$keep_old" ] && rm -rf "$destdir"/.old "$destdir"/.new -sync # If we only copy then we are done. if [ -n "$upgrade" ] && [ -z "$syslinux" ]; then @@ -270,4 +272,3 @@ else fi cleanup -sync -- cgit v1.2.3