diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-12-01 08:57:09 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-12-01 08:57:09 -0800 |
commit | b30840e1b9f31143ab50be9ed255ceaca94dbc39 (patch) | |
tree | 10c3d3a27f4af3b5143bcf01bd6ec950222370c4 /scripts | |
parent | 2dd244ad1db94bdb1f16468a185796c5b5a9c49e (diff) | |
download | vyatta-cfg-system-b30840e1b9f31143ab50be9ed255ceaca94dbc39.tar.gz vyatta-cfg-system-b30840e1b9f31143ab50be9ed255ceaca94dbc39.zip |
Add sync after config save
Calling sync ensure buffer cache is flushed, so that config is
actually on disk. May resolve some of the regression test I/O errors.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/init-floppy | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/init-floppy b/scripts/init-floppy index b18ae1fc..a3f29c11 100755 --- a/scripts/init-floppy +++ b/scripts/init-floppy @@ -98,6 +98,7 @@ echo "$mount__notice" echo "$config_notice" ${vyatta_sbindir}/vyatta-save-config.pl $fd/config/config.boot &>/dev/null || \ failure "$config__error" +/bin/sync echo "$bind___notice" /bin/mount -o bind $fd/config ${vyatta_sysconfdir}/config &>/dev/null || \ |