summaryrefslogtreecommitdiffstats
path: root/perl-install/fsedit.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-02-11 13:36:33 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-02-11 13:36:33 +0000
commit64ca82b757c600bc6e582ff018e2306c06070ed8 (patch)
tree1bc12545df5a7d25740f9ef5c3ede4757b561308 /perl-install/fsedit.pm
parent38c2ce5c558db850d4a85c95255f43d593904d55 (diff)
downloaddrakx-backup-do-not-use-64ca82b757c600bc6e582ff018e2306c06070ed8.tar
drakx-backup-do-not-use-64ca82b757c600bc6e582ff018e2306c06070ed8.tar.gz
drakx-backup-do-not-use-64ca82b757c600bc6e582ff018e2306c06070ed8.tar.bz2
drakx-backup-do-not-use-64ca82b757c600bc6e582ff018e2306c06070ed8.tar.xz
drakx-backup-do-not-use-64ca82b757c600bc6e582ff018e2306c06070ed8.zip
handle 0x7 partition table id specially since it can be both hpfs or ntfs.
so adding 0x107 being really ntfs. hopefully this change won't break too much things (but things were already broken, since it assigned a mount point with type ntfs to some hpfs partitions) (fixes bug #1455)
Diffstat (limited to 'perl-install/fsedit.pm')
-rw-r--r--perl-install/fsedit.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/fsedit.pm b/perl-install/fsedit.pm
index 62196cd34..fb52c0db0 100644
--- a/perl-install/fsedit.pm
+++ b/perl-install/fsedit.pm
@@ -57,7 +57,7 @@ my @partitions_signatures = (
[ 0x383, 0x8000, 'JFS1' ],
[ 0x82, 4086, "SWAP-SPACE" ],
[ 0x82, 4086, "SWAPSPACE2" ],
- [ 0x7, 0x1FE, "\x55\xAA", 0x3, "NTFS" ],
+ [ 0x107, 0x1FE, "\x55\xAA", 0x3, "NTFS" ],
[ 0xc, 0x1FE, "\x55\xAA", 0x52, "FAT32" ],
if_(arch() !~ /^sparc/,
[ 0x6, 0x1FE, "\x55\xAA", 0x36, "FAT" ],
@@ -211,7 +211,7 @@ sub hds {
$_->{type} = typeOfPart($_->{device}) || 0x100 foreach grep { $_->{type} == 0x100 } partition_table::get_normal_parts($hd);
#- special case for type overloading (eg: reiserfs is 0x183)
- foreach (grep { isExt2($_) } partition_table::get_normal_parts($hd)) {
+ foreach (grep { isExt2($_) || $_->{type} == 0x7 } partition_table::get_normal_parts($hd)) {
my $type = typeOfPart($_->{device});
$_->{type} = $type if $type > 0x100 || $type && $hd->isa('partition_table::gpt');
}