From de796f310b09981523748851e74e2e048abee9bf Mon Sep 17 00:00:00 2001 From: Joseph Kogut Date: Wed, 9 Mar 2016 13:32:08 -0800 Subject: [PATCH] Add option to force UEFI --- kiwi/install.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/kiwi/install.py b/kiwi/install.py index c324317..e2d4368 100644 --- a/kiwi/install.py +++ b/kiwi/install.py @@ -72,6 +72,7 @@ def fs_options(self): choices = [ ('Quick Format', '', 'quick_format'), ('NTFS Compression', '', 'fs_compression'), + ('Force GPT/EFI', '', 'uefi'), ] code, selected = self.d.checklist('Filesystem Options', choices=[ @@ -159,8 +160,12 @@ def auto_partition(self): self.logger.info('Partitioning drive ' + self.install_drive) - self.uefi = self.supports_uefi() - if self.uefi: self.logger.info('Detected machine booted with UEFI, using GPT') + if self.uefi is False: + self.uefi = self.supports_uefi() + else: uefi_forced = True + + if self.uefi and not uefi_forced: self.logger.info('Detected machine booted with UEFI, using GPT') + elif self.uefi and uefi_forced: self.logger.info('UEFI install forced, using GPT') else: self.logger.info('UEFI not supported, creating DOS partition table') partition_table = 'msdos' if not self.uefi else 'gpt'