[Fai-commit] r6761 - trunk/lib/setup-storage

Michael Tautschnig mt at alioth.debian.org
Sun Oct 23 10:21:10 UTC 2011


Author: mt
Date: 2011-10-23 10:21:10 +0000 (Sun, 23 Oct 2011)
New Revision: 6761

Modified:
   trunk/lib/setup-storage/Commands.pm
Log:
setup-storage: set bootable flag on gpt-bios disk

Previously used by LIS AG, reported by Thilo: some mainboards require the
bootable flag to be set on the pseudo-partition seen by non-GPT-aware tools and
systems. This will likely require a further fix as reading the resulting
partition table using parted possibly reports warnings/errors.


Modified: trunk/lib/setup-storage/Commands.pm
===================================================================
--- trunk/lib/setup-storage/Commands.pm	2011-10-23 10:17:25 UTC (rev 6760)
+++ trunk/lib/setup-storage/Commands.pm	2011-10-23 10:21:10 UTC (rev 6761)
@@ -1187,6 +1187,10 @@
     $prev_id = $part_id;
   }
 
+  &FAI::push_command("echo ,,,* | sfdisk --force $disk -N1",
+    "pt_complete_$disk", "gpt_bios_fake_bootable")
+    if($FAI::configs{$config}{disklabel} eq "gpt-bios");
+
   ($prev_id > -1) or &FAI::internal_error("No partitions created");
   $FAI::partition_table_deps{$disk} = "cleared2_$disk,exist_"
     . &FAI::make_device_name($disk, $prev_id);




More information about the Fai-commit mailing list