summaryrefslogtreecommitdiffstats
path: root/perl-install/fs.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-08-20 22:05:05 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-08-20 22:05:05 +0000
commit314859a4872032b07c5d0e57adf3d596049e2fdc (patch)
tree462d0e3624917538602f4ad456a384ebb8b45edc /perl-install/fs.pm
parentb0ca1896edd65eb0a43d6d031ba3b4d2fd0c008f (diff)
downloaddrakx-backup-do-not-use-314859a4872032b07c5d0e57adf3d596049e2fdc.tar
drakx-backup-do-not-use-314859a4872032b07c5d0e57adf3d596049e2fdc.tar.gz
drakx-backup-do-not-use-314859a4872032b07c5d0e57adf3d596049e2fdc.tar.bz2
drakx-backup-do-not-use-314859a4872032b07c5d0e57adf3d596049e2fdc.tar.xz
drakx-backup-do-not-use-314859a4872032b07c5d0e57adf3d596049e2fdc.zip
basic nfs handling in drakx
Diffstat (limited to 'perl-install/fs.pm')
-rw-r--r--perl-install/fs.pm9
1 files changed, 3 insertions, 6 deletions
diff --git a/perl-install/fs.pm b/perl-install/fs.pm
index a511ce931..3562f3cf1 100644
--- a/perl-install/fs.pm
+++ b/perl-install/fs.pm
@@ -507,11 +507,8 @@ sub mount {
my @fs_modules = qw(vfat hfs romfs ufs reiserfs xfs jfs ext3);
- if ($fs eq 'nfs') {
- log::l("calling nfs::mount($dev, $where)");
-# nfs::mount($dev, $where) or die _("nfs mount failed");
- } elsif ($fs eq 'smbfs') {
- die "no smb yet...";
+ if (member($fs, 'smb', 'nfs') && $::isStandalone) {
+ system('mount', $dev, $where) == 0 or die _("mount failed");
} elsif (member($fs, 'ext2', @fs_modules)) {
$dev = devices::make($dev) if $fs ne 'proc' && $fs ne 'usbdevfs';
@@ -579,7 +576,7 @@ sub mount_part {
} elsif (loopback::carryRootLoopback($part)) {
$mntpoint = "/initrd/loopfs";
}
- mount(devices::make($dev), $mntpoint, type2fs($part), $rdonly);
+ mount($dev, $mntpoint, type2fs($part), $rdonly);
rmdir "$mntpoint/lost+found";
}
}