diff options
author | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-03-23 18:50:55 +0000 |
---|---|---|
committer | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-03-23 18:50:55 +0000 |
commit | 45de7fa4b141d308f47b260e8f34c092b8ea8b7a (patch) | |
tree | b0bb3d520931b74ab2b35921083d99924a57c17c | |
parent | ffb716b5f7ce38d2f02426a16def6f7cc6a1b250 (diff) | |
download | tbdiff-45de7fa4b141d308f47b260e8f34c092b8ea8b7a.tar.gz |
Add sync at the end of tbdiff-{update,switch}.
-rwxr-xr-x | tbdiff-switch/tbdiff-switch | 3 | ||||
-rwxr-xr-x | tbdiff-update/tbdiff-update | 3 |
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 |