summaryrefslogtreecommitdiff
path: root/tbdiff-switch/tbdiff-switch
diff options
context:
space:
mode:
Diffstat (limited to 'tbdiff-switch/tbdiff-switch')
-rwxr-xr-xtbdiff-switch/tbdiff-switch3
1 files changed, 3 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