diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2000-03-14 09:25:40 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2000-03-14 09:25:40 +0000 |
commit | e2cbffc6422fc59ee624c2c399e79109c21c7cc4 (patch) | |
tree | 8bc16a2c6a23da765f7bd7ca08b5ad5dc676b6c5 /perl-install/fsedit.pm | |
parent | 9266168309a593e84c47cc59edb2a6ccd49e4686 (diff) | |
download | drakx-backup-do-not-use-e2cbffc6422fc59ee624c2c399e79109c21c7cc4.tar drakx-backup-do-not-use-e2cbffc6422fc59ee624c2c399e79109c21c7cc4.tar.gz drakx-backup-do-not-use-e2cbffc6422fc59ee624c2c399e79109c21c7cc4.tar.bz2 drakx-backup-do-not-use-e2cbffc6422fc59ee624c2c399e79109c21c7cc4.tar.xz drakx-backup-do-not-use-e2cbffc6422fc59ee624c2c399e79109c21c7cc4.zip |
no_comment
Diffstat (limited to 'perl-install/fsedit.pm')
-rw-r--r-- | perl-install/fsedit.pm | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/perl-install/fsedit.pm b/perl-install/fsedit.pm index e8b045d04..e45883fd9 100644 --- a/perl-install/fsedit.pm +++ b/perl-install/fsedit.pm @@ -28,6 +28,7 @@ arch() =~ /^sparc/ ? ( { mntpoint => "/", size => 50 << 11, type => 0x83, ratio => 1, maxsize => 300 << 11 }, { mntpoint => "swap", size => 30 << 11, type => 0x82, ratio => 1, maxsize => 250 << 11 }, ), + { mntpoint => "/boot", size => 16 << 11, type => 0x83, ratio => 1, maxsize => 30 << 11 }, { mntpoint => "/usr", size => 200 << 11, type => 0x83, ratio => 6, maxsize =>1500 << 11 }, { mntpoint => "/home", size => 50 << 11, type => 0x83, ratio => 3 }, { mntpoint => "/var", size => 200 << 11, type => 0x83, ratio => 1, maxsize =>1000 << 11 }, @@ -232,6 +233,8 @@ sub has_mntpoint($$) { sub check_mntpoint { my ($mntpoint, $hd, $part, $hds, $loopbackDevice) = @_; + ref $loopbackDevice or undef $loopbackDevice; + $mntpoint eq '' || isSwap($part) || isRAID($part) and return; local $_ = $mntpoint; @@ -248,13 +251,14 @@ sub check_mntpoint { push @seen, $p->{mntpoint} || return; @seen > 1 && $p->{mntpoint} eq $mntpoint and die _("Circular mounts %s\n", join(", ", @seen)); if (my $part = fs::up_mount_point($p->{mntpoint}, $fstab)) { - $check->($part, @seen); + #- '/' carrier is a special case, it will be mounted first + $check->($part, @seen) unless loopback::carryRootLoopback($p); } if (isLoopback($p)) { $check->($p->{device}, @seen); } }; - $check->($fake_part); + $check->($fake_part) unless $mntpoint eq '/' && $loopbackDevice; #- '/' is a special case, no loop check #- if ($part->{start} + $part->{size} > 1024 * $hd->cylinder_size() && arch() =~ /i386/) { #- die "/boot ending on cylinder > 1024" if $mntpoint eq "/boot"; |