summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/drakupdate_fstab
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-06-17 07:49:23 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-06-17 07:49:23 +0000
commite8081e4212aa8f04cbe88ef2296b88091d102b1f (patch)
treeff88c5747e607ad60c74faa935b3bd7aea3d0d6e /perl-install/standalone/drakupdate_fstab
parent9fc07165ee95c601cac26047ba9c2181138a3a0a (diff)
downloaddrakx-e8081e4212aa8f04cbe88ef2296b88091d102b1f.tar
drakx-e8081e4212aa8f04cbe88ef2296b88091d102b1f.tar.gz
drakx-e8081e4212aa8f04cbe88ef2296b88091d102b1f.tar.bz2
drakx-e8081e4212aa8f04cbe88ef2296b88091d102b1f.tar.xz
drakx-e8081e4212aa8f04cbe88ef2296b88091d102b1f.zip
add support for floppies
Diffstat (limited to 'perl-install/standalone/drakupdate_fstab')
-rwxr-xr-xperl-install/standalone/drakupdate_fstab6
1 files changed, 5 insertions, 1 deletions
diff --git a/perl-install/standalone/drakupdate_fstab b/perl-install/standalone/drakupdate_fstab
index ab7878adc..c911f7055 100755
--- a/perl-install/standalone/drakupdate_fstab
+++ b/perl-install/standalone/drakupdate_fstab
@@ -83,6 +83,7 @@ sub device_name_to_entry {
} else {
$e->{device} = $name; #- keeping the exact name given (often is the devfs name)
}
+ $e->{media_type} = 'fd' if $name =~ /fd[01]/;
$e;
}
@@ -143,7 +144,10 @@ sub main {
set_mount_point($part, $fstab) or return;
my ($line) = fs::prepare_write_fstab([$part]);
- append_to_file($fstab_file, $line) if $line;
+ if ($line) {
+ append_to_file($fstab_file, $line);
+ system("mount $part->{mntpoint}") if !$::testing && $device_name =~ /^fd\d+/;
+ }
if ($::auto) {
print $part->{mntpoint}, " ", $useSupermount ? 'supermount' : 'user', "\n";