Remove coreboot detection, add skip_grub parameter
And unconditionally allow boot encryption and the lvmlv format. (The user still has to fight the installer to actually set it up.) Fixes QubesOS/qubes-issues#2553
This commit is contained in:
parent
7b424ec65f
commit
62cb1ca1e6
@ -1419,13 +1419,9 @@ class GRUB2(GRUB):
|
|||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(GRUB2, self).__init__()
|
super(GRUB2, self).__init__()
|
||||||
|
|
||||||
if subprocess.check_output(
|
self.encryption_support = True
|
||||||
['dmidecode', '-s', 'bios-vendor'],
|
self.stage2_format_types += ["lvmlv"]
|
||||||
universal_newlines=True) == "coreboot\n":
|
self.skip_bootloader = flags.cmdline.getbool("skip_grub", False)
|
||||||
log.info("dmidecode -s bios-vendor returns coreboot")
|
|
||||||
self.encryption_support = True
|
|
||||||
self.skip_bootloader = True
|
|
||||||
self.stage2_format_types += ["lvmlv"]
|
|
||||||
|
|
||||||
# XXX we probably need special handling for raid stage1 w/ gpt disklabel
|
# 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
|
# since it's unlikely there'll be a bios boot partition on each disk
|
||||||
|
Loading…
Reference in New Issue
Block a user