From 00b61be8e2bc2fda4a848fe7af38e7d7543d322f Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 27 Mar 2015 07:19:10 -0400 Subject: fix tagging swap as "linux filesystem" with GPT libparted needs it to be named like this in order to put the right GUID... --- perl-install/partition_table/gpt.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'perl-install/partition_table') diff --git a/perl-install/partition_table/gpt.pm b/perl-install/partition_table/gpt.pm index dc169c183..cad7e6073 100644 --- a/perl-install/partition_table/gpt.pm +++ b/perl-install/partition_table/gpt.pm @@ -145,6 +145,7 @@ sub write { my ($part) = grep { $_->{start} == $o_start && $_->{size} == $o_size } @$pt; print "($action, $part_number, $o_start, $o_size)\n"; if ($action eq 'add') { + local $part->{fs_type} = 'linux-swap(v1)' if isSwap($part->{fs_type}); c::disk_add_partition($hd->{file}, $o_start, $o_size, $part->{fs_type}) or die "failed to add partition #$part_number on $hd->{file}"; if (isESP($part)) { c::set_partition_flag($hd->{file}, $part_number, 'ESP') -- cgit v1.2.1