Skip to content

Commit

Permalink
Add option to force UEFI
Browse files Browse the repository at this point in the history
  • Loading branch information
jakogut committed Mar 24, 2016
1 parent 36bcc34 commit de796f3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions kiwi/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -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=[
Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit de796f3

Please sign in to comment.