summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-03-23 18:50:55 +0000
committerJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-03-23 18:50:55 +0000
commit45de7fa4b141d308f47b260e8f34c092b8ea8b7a (patch)
treeb0bb3d520931b74ab2b35921083d99924a57c17c
parentffb716b5f7ce38d2f02426a16def6f7cc6a1b250 (diff)
downloadtbdiff-45de7fa4b141d308f47b260e8f34c092b8ea8b7a.tar.gz
Add sync at the end of tbdiff-{update,switch}.
-rwxr-xr-xtbdiff-switch/tbdiff-switch3
-rwxr-xr-xtbdiff-update/tbdiff-update3
2 files changed, 6 insertions, 0 deletions
diff --git a/tbdiff-switch/tbdiff-switch b/tbdiff-switch/tbdiff-switch
index 8f7b63c..306ef86 100755
--- a/tbdiff-switch/tbdiff-switch
+++ b/tbdiff-switch/tbdiff-switch
@@ -70,5 +70,8 @@ busybox sed -i -e "s,factory-run,$target_subvolume-run,g" "extlinux.conf"
# leave the root file system
cd /
+# perform a sync to make sure everything has been written
+sync
+
# reboot the system
busybox reboot
diff --git a/tbdiff-update/tbdiff-update b/tbdiff-update/tbdiff-update
index e6caeec..0cd7471 100755
--- a/tbdiff-update/tbdiff-update
+++ b/tbdiff-update/tbdiff-update
@@ -110,5 +110,8 @@ busybox sed -i -e "s,factory-run,$target_subvolume-run,g" "extlinux.conf"
# leave the root file system
cd /
+# perform a sync to make sure everything has been written
+sync
+
# reboot the system
busybox reboot