diff options
author | Thomas Backlund <tmb@mageia.org> | 2014-01-11 03:21:37 +0159 |
---|---|---|
committer | Thomas Backlund <tmb@mageia.org> | 2014-01-11 03:21:37 +0159 |
commit | 1d643f59e5a37a5042d8c18e057544a72d7da05e (patch) | |
tree | a7c4694cf915cf78cc76a900cce21643e6b08dc9 /perl-install/fs | |
parent | c22547139d163ab3e19194916abc4069ee536ef6 (diff) | |
download | drakx-1d643f59e5a37a5042d8c18e057544a72d7da05e.tar drakx-1d643f59e5a37a5042d8c18e057544a72d7da05e.tar.gz drakx-1d643f59e5a37a5042d8c18e057544a72d7da05e.tar.bz2 drakx-1d643f59e5a37a5042d8c18e057544a72d7da05e.tar.xz drakx-1d643f59e5a37a5042d8c18e057544a72d7da05e.zip |
initial efi support
Diffstat (limited to 'perl-install/fs')
-rw-r--r-- | perl-install/fs/type.pm | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/perl-install/fs/type.pm b/perl-install/fs/type.pm index 4cbf0c496..6acb98e89 100644 --- a/perl-install/fs/type.pm +++ b/perl-install/fs/type.pm @@ -36,6 +36,10 @@ if_(arch() =~ /i.86|ia64|x86_64/, 0x07 => 'ntfs-3g', 'NTFS-3G', 0x07 => 'ntfs', 'NTFS', ), +if_(arch() =~ /x86_64/, + 0xee => '', 'EFI GPT', + 0xef => 'vfat', 'EFI (FAT-12/16/32)', +), if_(arch() =~ /ppc/, 0x401 => '', 'Apple Bootstrap', 0x402 => 'hfs', 'Apple HFS Partition', @@ -151,8 +155,10 @@ if_(arch() !~ /ppc/, 0xe3 => '', 'DOS R/O', 0xe4 => '', 'SpeedStor (FAT-16)', 0xeb => 'befs', 'BeOS fs', +if_(arch() !~ /x86_64/, 0xee => '', 'EFI GPT', 0xef => 'vfat', 'EFI (FAT-12/16/32)', +), 0xf0 => '', 'Linux/PA-RISC boot', 0xf4 => '', 'SpeedStor (large part.)', 0xf2 => '', 'DOS secondary', @@ -313,7 +319,7 @@ sub defaultFS() { 'ext4' } sub true_local_fs_types() { qw(btrfs ext3 ext2 ext4 reiserfs xfs jfs) } sub isEmpty { !$_[0]{fs_type} && $_[0]{pt_type} == 0 } -sub isEfi { arch() =~ /ia64/ && $_[0]{pt_type} == 0xef } +sub isEfi { arch() =~ /ia64|x86_64/ && $_[0]{pt_type} == 0xef } sub isWholedisk { arch() =~ /^sparc/ && $_[0]{pt_type} == 5 } sub isExtended { arch() !~ /^sparc/ && ($_[0]{pt_type} == 5 || $_[0]{pt_type} == 0xf || $_[0]{pt_type} == 0x85) } sub isRawLVM { $_[0]{pt_type} == 0x8e || $_[0]{type_name} eq 'Linux Logical Volume Manager' } |