summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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