Skip to content

Commit

Permalink
anaconda: add skip_grub parameter and allow boot encryption and the l…
Browse files Browse the repository at this point in the history
…vmlv format

On coreboot systems, as grub2 can be used a payload it is possible to have all the partitions encrypted.

Based on commits bf803e7 and 62cb1ca.
  • Loading branch information
fepitre committed Jan 3, 2019
1 parent 9019bdb commit cab4c3f
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions pyanaconda/bootloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -1448,12 +1448,13 @@ class GRUB2(GRUB):
# XXX we probably need special handling for raid stage1 w/ gpt disklabel
# since it's unlikely there'll be a bios boot partition on each disk

@property
def stage2_format_types(self):
if productName.startswith("Red Hat "): # pylint: disable=no-member
return ["xfs", "ext4", "ext3", "ext2"]
else:
return ["ext4", "ext3", "ext2", "btrfs", "xfs"]
stage2_format_types = ["ext4", "ext3", "ext2", "btrfs", "xfs"]

def __init__(self):
super().__init__()
self.encryption_support = True
self.stage2_format_types += ["lvmlv"]
self.skip_bootloader = flags.cmdline.getbool("skip_grub", False)

#
# grub-related conveniences
Expand Down

0 comments on commit cab4c3f

Please sign in to comment.