Skip to content

Commit

Permalink
anaconda: don't force non-encrypted /boot on coreboot systems
Browse files Browse the repository at this point in the history
With grub payload it is possible to have all the partitions encrypted.

Based on patch by @tlaurion

Fixes QubesOS/qubes-issues#2118
  • Loading branch information
fepitre committed Oct 19, 2018
1 parent c4f96cd commit 24f889d
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 @@ -43,6 +43,8 @@
from pyanaconda.i18n import _, N_

import logging
import subprocess

log = logging.getLogger("anaconda")

class serial_opts(object):
Expand Down Expand Up @@ -1411,16 +1413,15 @@ class GRUB2(GRUB):
raid.RAID5, raid.RAID6, raid.RAID10]
stage2_raid_metadata = ["0", "0.90", "1.0", "1.2"]

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

def __init__(self):
super(GRUB2, self).__init__()

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

# 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

Expand Down

0 comments on commit 24f889d

Please sign in to comment.