From 45de7fa4b141d308f47b260e8f34c092b8ea8b7a Mon Sep 17 00:00:00 2001 From: Jannis Pohlmann Date: Fri, 23 Mar 2012 18:50:55 +0000 Subject: Add sync at the end of tbdiff-{update,switch}. --- tbdiff-switch/tbdiff-switch | 3 +++ tbdiff-update/tbdiff-update | 3 +++ 2 files changed, 6 insertions(+) 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 -- cgit v1.2.1