From b30840e1b9f31143ab50be9ed255ceaca94dbc39 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 1 Dec 2009 08:57:09 -0800 Subject: 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. --- scripts/init-floppy | 1 + 1 file changed, 1 insertion(+) 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 || \ -- cgit v1.2.3