summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-02-20 12:27:28 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-02-20 12:27:28 +0000
commite7beff20465926e54a6ecc1ee4fee2fc21b8e220 (patch)
tree369be898e9bfb0bf91a53a1b1017a408f94b03ab
parent48afdf8a84344d89ad71c91a7fc66d95eb3e2927 (diff)
downloaddrakx-backup-do-not-use-e7beff20465926e54a6ecc1ee4fee2fc21b8e220.tar
drakx-backup-do-not-use-e7beff20465926e54a6ecc1ee4fee2fc21b8e220.tar.gz
drakx-backup-do-not-use-e7beff20465926e54a6ecc1ee4fee2fc21b8e220.tar.bz2
drakx-backup-do-not-use-e7beff20465926e54a6ecc1ee4fee2fc21b8e220.tar.xz
drakx-backup-do-not-use-e7beff20465926e54a6ecc1ee4fee2fc21b8e220.zip
set {device_windobe} for 0x107 *and* 0x7 (since 0x107 is not set correctly at this stage)
(otherwise this causes mount points /mnt/win_ /mnt/win_1...)
-rw-r--r--perl-install/partition_table.pm8
1 files changed, 6 insertions, 2 deletions
diff --git a/perl-install/partition_table.pm b/perl-install/partition_table.pm
index 1bb76bf4c..5279552f9 100644
--- a/perl-install/partition_table.pm
+++ b/perl-install/partition_table.pm
@@ -374,11 +374,15 @@ sub assign_device_numbers {
#
#- first verify there's at least one primary dos partition, otherwise it
#- means it is a secondary disk and all will be false :(
- my ($c, @others) = grep { isFat_or_NTFS($_) } @{$hd->{primary}{normal}};
+ #-
+ #- isFat_or_NTFS isn't true for 0x7 partitions, only for 0x107.
+ #- alas 0x107 is not set correctly at this stage
+ #- solution: don't bother with 0x7 vs 0x107 here
+ my ($c, @others) = grep { isFat_or_NTFS($_) || $_->{type} == 0x7 } @{$hd->{primary}{normal}};
$i = ord 'C';
$c->{device_windobe} = chr($i++) if $c;
- $_->{device_windobe} = chr($i++) foreach grep { isFat_or_NTFS($_) } map { $_->{normal} } @{$hd->{extended}};
+ $_->{device_windobe} = chr($i++) foreach grep { isFat_or_NTFS($_) || $_->{type} == 0x7 } map { $_->{normal} } @{$hd->{extended}};
$_->{device_windobe} = chr($i++) foreach @others;
}