summaryrefslogtreecommitdiffstats
path: root/perl-install/install_any.pm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-06-28 04:56:47 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-06-28 04:56:47 +0000
commit0bd95c3ad96f0f711cb9b03c94ce139a3fe477f7 (patch)
treee42fa7503bc2958faf0bdae3827e5da036a5104e /perl-install/install_any.pm
parentf3eca0affbbeedb2aabeb3fe3cb869045fbbf880 (diff)
downloaddrakx-0bd95c3ad96f0f711cb9b03c94ce139a3fe477f7.tar
drakx-0bd95c3ad96f0f711cb9b03c94ce139a3fe477f7.tar.gz
drakx-0bd95c3ad96f0f711cb9b03c94ce139a3fe477f7.tar.bz2
drakx-0bd95c3ad96f0f711cb9b03c94ce139a3fe477f7.tar.xz
drakx-0bd95c3ad96f0f711cb9b03c94ce139a3fe477f7.zip
Add NFS supplementary media in fstab
Diffstat (limited to 'perl-install/install_any.pm')
-rw-r--r--perl-install/install_any.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm
index 3fa2596d8..eccca9a18 100644
--- a/perl-install/install_any.pm
+++ b/perl-install/install_any.pm
@@ -525,9 +525,11 @@ sub selectSupplMedia {
my $mediadir = '/mnt/nfsmedia' . $medium_name;
$url = "$::prefix$mediadir";
-d $url or mkdir_p($url);
- eval { fs::mount("$host:$dir", "$::prefix$mediadir", 'nfs'); 1 }
+ my $dev = "$host:$dir";
+ eval { fs::mount($dev, $url, 'nfs'); 1 }
or do { log::l("Mount failed: $@"); return 'error' };
- #- TODO add $mediadir in fstab for post-installation
+ #- add $mediadir in fstab for post-installation
+ push @{$o->{all_hds}{nfss}}, { fs_type => 'nfs', mntpoint => $mediadir, device => $dev, options => "noauto,ro,nosuid,soft,rsize=8192,wsize=8192" };
} else {
$url = $o->ask_from_entry('', N("URL of the mirror?")) or return 'error';
$url =~ s!/+\z!!;