-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
0010-Add-skip_grub-parameter-and-allow-boot-encryption-an.patch
49 lines (42 loc) · 1.9 KB
/
0010-Add-skip_grub-parameter-and-allow-boot-encryption-an.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
From 5164e845da52e7db750ebc8c76e4df9de980a001 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Pierret=20=28fepitre=29?=
<frederic.pierret@qubes-os.org>
Date: Sun, 15 Dec 2019 12:01:21 +0100
Subject: [PATCH] Add skip_grub parameter and allow boot encryption and the
lvmlv format
On coreboot systems, as grub2 can be used a payload it is possible to have all the partitions encrypted.
Originally based on:
- https://github.com/QubesOS/qubes-installer-qubes-os/commit/bf803e7
- https://github.com/QubesOS/qubes-installer-qubes-os/commit/62cb1ca
---
pyanaconda/modules/storage/bootloader/grub2.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/pyanaconda/modules/storage/bootloader/grub2.py b/pyanaconda/modules/storage/bootloader/grub2.py
index e4b12cf6ce..ccdbdd6dcf 100644
--- a/pyanaconda/modules/storage/bootloader/grub2.py
+++ b/pyanaconda/modules/storage/bootloader/grub2.py
@@ -27,6 +27,7 @@ from pyanaconda.core.configuration.anaconda import conf
from pyanaconda.core.i18n import _
from pyanaconda.core.path import open_with_perm
from pyanaconda.core.product import get_product_name
+from pyanaconda.core.kernel import kernel_arguments
from pyanaconda.anaconda_loggers import get_module_logger
log = get_module_logger(__name__)
@@ -130,6 +131,8 @@ class GRUB2(BootLoader):
def __init__(self):
super().__init__()
self.encrypted_password = ""
+ self.encryption_support = True
+ self.skip_bootloader = kernel_arguments.get("skip_grub", False)
#
# configuration
@@ -187,7 +190,7 @@ class GRUB2(BootLoader):
if get_product_name().startswith("Red Hat "): # pylint: disable=no-member
return ["xfs", "ext4", "ext3", "ext2"]
else:
- return ["ext4", "ext3", "ext2", "btrfs", "xfs"]
+ return ["ext4", "ext3", "ext2", "btrfs", "xfs", "lvmlv"]
#
# grub-related conveniences
--
2.45.2