summaryrefslogtreecommitdiffstats
path: root/perl-install/partition_table_raw.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2000-07-24 10:26:06 +0000
committerPascal Rigaux <pixel@mandriva.com>2000-07-24 10:26:06 +0000
commit3cf3e2f2afd279dad95082ee81f3f83516024b27 (patch)
tree1d73d53ac3deaae5ae2f8c12f5d501e8ffa7f28e /perl-install/partition_table_raw.pm
parentd97b226e3049c136401416aaceaba39587cd0605 (diff)
downloaddrakx-3cf3e2f2afd279dad95082ee81f3f83516024b27.tar
drakx-3cf3e2f2afd279dad95082ee81f3f83516024b27.tar.gz
drakx-3cf3e2f2afd279dad95082ee81f3f83516024b27.tar.bz2
drakx-3cf3e2f2afd279dad95082ee81f3f83516024b27.tar.xz
drakx-3cf3e2f2afd279dad95082ee81f3f83516024b27.zip
no_comment
Diffstat (limited to 'perl-install/partition_table_raw.pm')
-rw-r--r--perl-install/partition_table_raw.pm7
1 files changed, 3 insertions, 4 deletions
diff --git a/perl-install/partition_table_raw.pm b/perl-install/partition_table_raw.pm
index 7b886a1f8..4fe3fe73b 100644
--- a/perl-install/partition_table_raw.pm
+++ b/perl-install/partition_table_raw.pm
@@ -104,10 +104,9 @@ sub kernel_read($) {
sub zero_MBR($) {
my ($hd) = @_;
-# unless (ref($hd) =~ /partition_table/) {
- my $type = arch() eq "alpha" ? "bsd" : arch() =~ /^sparc/ ? "sun" : arch() eq "ppc" ? "mac" : "dos";
- bless $hd, "partition_table_$type";
-# }
+ #- force the standard partition type for the architecture
+ my $type = arch() eq "alpha" ? "bsd" : arch() =~ /^sparc/ ? "sun" : arch() eq "ppc" ? "mac" : "dos";
+ bless $hd, "partition_table_$type";
$hd->{isDirty} = $hd->{needKernelReread} = 1;
$hd->{primary} = $hd->clear_raw();
delete $hd->{extended};