summaryrefslogtreecommitdiff
path: root/setup-bootable.in
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-05-04 07:26:53 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-05-04 07:26:53 +0000
commit10abad1c4e005e6ddd9a59fada07720e42227486 (patch)
treebe9331df41c51b7a32a233d664757875a282d2b6 /setup-bootable.in
parent9221065710635d8a5436807c23a6e201cd583cea (diff)
downloadalpine-conf-10abad1c4e005e6ddd9a59fada07720e42227486.zip
setup-bootable: fix syncing and remount as rw
we sync on cleanup and wait before remounting as rw
Diffstat (limited to 'setup-bootable.in')
-rw-r--r--setup-bootable.in5
1 files 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