summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/drakupdate_fstab
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-06-12 14:20:49 +0000
committerOlivier Blin <oblin@mandriva.com>2008-06-12 14:20:49 +0000
commit0469709a39c49d33716b7f9cb4df5eda9a3ffe43 (patch)
treebe35c3683c5c32cb98f34353cb384d60159e7093 /perl-install/standalone/drakupdate_fstab
parente45b29f87c8416f1e38ed4a4a52b852581888da4 (diff)
downloaddrakx-0469709a39c49d33716b7f9cb4df5eda9a3ffe43.tar
drakx-0469709a39c49d33716b7f9cb4df5eda9a3ffe43.tar.gz
drakx-0469709a39c49d33716b7f9cb4df5eda9a3ffe43.tar.bz2
drakx-0469709a39c49d33716b7f9cb4df5eda9a3ffe43.tar.xz
drakx-0469709a39c49d33716b7f9cb4df5eda9a3ffe43.zip
drakupdate_fstab: make sure removable disks are not fs-checked on boot (regression introduced in 10.6.3)
Diffstat (limited to 'perl-install/standalone/drakupdate_fstab')
-rwxr-xr-xperl-install/standalone/drakupdate_fstab6
1 files changed, 6 insertions, 0 deletions
diff --git a/perl-install/standalone/drakupdate_fstab b/perl-install/standalone/drakupdate_fstab
index 72bb1d221..e72d33fca 100755
--- a/perl-install/standalone/drakupdate_fstab
+++ b/perl-install/standalone/drakupdate_fstab
@@ -78,6 +78,11 @@ sub device_name_to_entry {
$e;
}
+sub set_options {
+ my ($part) = @_;
+ $part->{is_removable} = 1;
+}
+
sub set_mount_point {
my ($part, $fstab, $is_hd) = @_;
@@ -130,6 +135,7 @@ sub configure_part {
return;
}
set_mount_point($part, $fstab, $is_hd) or return;
+ set_options($part);
my ($line) = fs::prepare_write_fstab([$part]);
if ($line) {