From 83565d0739e5746ea02c210106a2d1f1d1477eda Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 8 Jun 2016 22:48:20 +0200 Subject: detect GRUB_BIOS partitions (mga#18656) let's abuse ->{pt_type} for tracking such partitions --- perl-install/partition_table/gpt.pm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'perl-install/partition_table') diff --git a/perl-install/partition_table/gpt.pm b/perl-install/partition_table/gpt.pm index 4a277f7b6..472976377 100644 --- a/perl-install/partition_table/gpt.pm +++ b/perl-install/partition_table/gpt.pm @@ -128,6 +128,8 @@ sub read_one { # fix detecting ESP (special case are they're detected through pt_type): if ($_->{flag} eq 'ESP') { $_->{pt_type} = 0xef; + } elsif ($_->{flag} eq 'BIOS_GRUB') { + $_->{pt_type} = $_->{flag}; } elsif ($_->{flag} eq 'LVM') { $_->{pt_type} = 0x8e; } elsif ($_->{flag} eq 'RAID') { @@ -169,6 +171,8 @@ sub write { my $flag; if (isESP($part)) { $flag = 'ESP'; + } elsif (isBIOS_GRUB($part)) { + $flag = 'BIOS_GRUB'; } elsif (isRawLVM($part)) { $flag = 'LVM'; } elsif (isRawRAID($part)) { -- cgit v1.2.1