diff options
author | Pascal Rigaux <pixel@mandriva.com> | 1999-07-30 12:58:11 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 1999-07-30 12:58:11 +0000 |
commit | 5ed323fc9a6c7e36a81242fa4a104ba3ea514339 (patch) | |
tree | e6a50fe6deecc79642045ee3b602c29d86f019df /perl-install | |
parent | 3d79e422764401cf0d18a86bdf2679511119cdbc (diff) | |
download | drakx-backup-do-not-use-5ed323fc9a6c7e36a81242fa4a104ba3ea514339.tar drakx-backup-do-not-use-5ed323fc9a6c7e36a81242fa4a104ba3ea514339.tar.gz drakx-backup-do-not-use-5ed323fc9a6c7e36a81242fa4a104ba3ea514339.tar.bz2 drakx-backup-do-not-use-5ed323fc9a6c7e36a81242fa4a104ba3ea514339.tar.xz drakx-backup-do-not-use-5ed323fc9a6c7e36a81242fa4a104ba3ea514339.zip |
no_comment
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/fsedit.pm | 4 | ||||
-rw-r--r-- | perl-install/partition_table.pm | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/perl-install/fsedit.pm b/perl-install/fsedit.pm index 5269ea25e..ad73e45c8 100644 --- a/perl-install/fsedit.pm +++ b/perl-install/fsedit.pm @@ -128,6 +128,10 @@ sub add($$$) { ($part->{mntpoint} = 'swap') : check_mntpoint($part->{mntpoint}, $hds); + $part->{mntpoint} eq '/boot' && + $part->{start} + $part->{size} >= 1024 * partition_table::cylinder_size($hd) and + die "/boot on cylinder > 1024"; + partition_table::add($hd, $part); } diff --git a/perl-install/partition_table.pm b/perl-install/partition_table.pm index a9f20cd10..8ea4744bc 100644 --- a/perl-install/partition_table.pm +++ b/perl-install/partition_table.pm @@ -276,6 +276,11 @@ sub remove($$) { %{$last->{extended}} = $_->{extended} ? %{$_->{extended}} : (); splice(@{$hd->{extended}}, $i, 1); + unless (@{$hd->{extended}}) { + %{$hd->{primary}->{extended}} = (); + delete $hd->{primary}->{extended}; + } + return $hd->{isDirty} = $hd->{needKernelReread} = 1; } $last = $_; |