From af3ffa855ec0195161b762751d4e3a53b3529eba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20M=C3=BCller?= Date: Fri, 9 Nov 2018 00:39:52 +0100 Subject: [PATCH] [partion] Set FlagBoot for some legacy BIOSes, otherwise may not boot. --- src/modules/partition/core/PartitionActions.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/modules/partition/core/PartitionActions.cpp b/src/modules/partition/core/PartitionActions.cpp index e06ff6c36..558c0da96 100644 --- a/src/modules/partition/core/PartitionActions.cpp +++ b/src/modules/partition/core/PartitionActions.cpp @@ -195,7 +195,15 @@ doAutopartition( PartitionCoreModule* core, Device* dev, Choices::AutoPartitionO } PartitionInfo::setFormat( rootPartition, true ); PartitionInfo::setMountPoint( rootPartition, "/" ); - core->createPartition( dev, rootPartition ); + if( isEfi ) + { + core->createPartition( dev, rootPartition ); + } + else + { + // Set FlagBoot for some legacy BIOSes, otherwise may not boot. + core->createPartition( dev, rootPartition, PartitionTable::FlagBoot ); + } if ( shouldCreateSwap ) {