summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2004-09-02 07:30:49 +0000
committerOlivier Blin <oblin@mandriva.org>2004-09-02 07:30:49 +0000
commit48a30c18d52b1131c6a3fe9b0b2f1265d28501a5 (patch)
tree9976511afafde2a8fa025ff93b97f8a31226b82d
parent6b28ce130d4c6737ba8956edb3dfc0be2943805b (diff)
downloaddrakx-backup-do-not-use-48a30c18d52b1131c6a3fe9b0b2f1265d28501a5.tar
drakx-backup-do-not-use-48a30c18d52b1131c6a3fe9b0b2f1265d28501a5.tar.gz
drakx-backup-do-not-use-48a30c18d52b1131c6a3fe9b0b2f1265d28501a5.tar.bz2
drakx-backup-do-not-use-48a30c18d52b1131c6a3fe9b0b2f1265d28501a5.tar.xz
drakx-backup-do-not-use-48a30c18d52b1131c6a3fe9b0b2f1265d28501a5.zip
set_default: use sync for removable devices
-rw-r--r--perl-install/fs/mount_options.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/fs/mount_options.pm b/perl-install/fs/mount_options.pm
index 66d434d0e..dd9dfc93b 100644
--- a/perl-install/fs/mount_options.pm
+++ b/perl-install/fs/mount_options.pm
@@ -168,6 +168,7 @@ sub set_default {
$options->{supermount} = $opts{useSupermount} && !($opts{useSupermount} eq 'magicdev' && $part->{media_type} eq 'cdrom');
$part->{fs_type} = !$options->{supermount} ? 'auto' :
$part->{media_type} eq 'cdrom' ? 'udf:iso9660' : 'ext2:vfat';
+ $options->{sync} = 1 if $part->{media_type} ne 'cdrom';
}
if ($part->{media_type} eq 'cdrom') {