From 27779dd88a9699b98070fee12a355503bd95ade3 Mon Sep 17 00:00:00 2001 From: Francois Pons Date: Wed, 5 Sep 2001 10:04:46 +0000 Subject: support setting /tmp/hdimage in /etc/fstab even if memory is low (not using ramdisk). --- perl-install/fs.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/perl-install/fs.pm b/perl-install/fs.pm index b8f33b7ed..962e77ab0 100644 --- a/perl-install/fs.pm +++ b/perl-install/fs.pm @@ -148,8 +148,9 @@ sub write_fstab { "$dir$_->{device}"; }; - mkdir("$prefix/$_->{mntpoint}", 0755); + mkdir("$prefix/" . ($_->{mntpoint} || $_->{real_mntpoint}), 0755); my $mntpoint = loopback::carryRootLoopback($_) ? '/initrd/loopfs' : $_->{mntpoint}; + $mntpoint ||= ${{ '/tmp/hdimage' => '/mnt/hd' }}{$_->{real_mntpoint}}; #- convert for inaccessible partition at install. my ($freq, $passno) = exists $_->{freq} ? @@ -178,7 +179,7 @@ sub write_fstab { } else { () } - } grep { $_->{device} && $_->{mntpoint} && $_->{type} } (@l1, @l2); + } grep { $_->{device} && ($_->{mntpoint} || $_->{real_mntpoint}) && $_->{type} } (@l1, @l2); log::l("writing $prefix/etc/fstab"); output("$prefix/etc/fstab", map { join(' ', @$_) . "\n" } sort { $a->[1] cmp $b->[1] } @l); -- cgit v1.2.1