From 5956c4053c0de30a6d9028773b3540dc37534923 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Thu, 12 Nov 2009 09:47:42 -0800 Subject: Change options to floppy mount Try and update floppy synchronously for super block updates. This attempts to address issues where floppy is ejected without unmounting; which is not completely safe. --- etc/init.d/vyatta-ofr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'etc') diff --git a/etc/init.d/vyatta-ofr b/etc/init.d/vyatta-ofr index ac8d861..ba972eb 100755 --- a/etc/init.d/vyatta-ofr +++ b/etc/init.d/vyatta-ofr @@ -67,7 +67,7 @@ have_rl_system () { # if necessary, provide initial config init_bootfile () { - if [ ! -d /media/floppy/config -a -b /dev/fd0 ] + if [ -b /dev/fd0 ] && [ ! -d /media/floppy/config ] then [ -d /media/floppy ] || mkdir -p /media/floppy @@ -75,7 +75,7 @@ init_bootfile () { # and it will fail if no floppy present # Note: no good way to test for floppy present without causing I/O error mount /dev/fd0 /media/floppy \ - -o sync,noexec,nodev,noatime,nosuid 2>/dev/null + -o sync,dirsync,noexec,nodev,noatime,nodiratime,nosuid 2>/dev/null fi [ -d /media/floppy/config ] && -- cgit v1.2.3