diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2003-02-11 13:36:33 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2003-02-11 13:36:33 +0000 |
commit | 64ca82b757c600bc6e582ff018e2306c06070ed8 (patch) | |
tree | 1bc12545df5a7d25740f9ef5c3ede4757b561308 /perl-install/fsedit.pm | |
parent | 38c2ce5c558db850d4a85c95255f43d593904d55 (diff) | |
download | drakx-64ca82b757c600bc6e582ff018e2306c06070ed8.tar drakx-64ca82b757c600bc6e582ff018e2306c06070ed8.tar.gz drakx-64ca82b757c600bc6e582ff018e2306c06070ed8.tar.bz2 drakx-64ca82b757c600bc6e582ff018e2306c06070ed8.tar.xz drakx-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.pm | 4 |
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'); } |