You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qubes-installer-qubes-os/anaconda/0013-anaconda-use-installer...

62 lines
2.2 KiB

From 66a87473c6360bac0f47e14fca6293cda8c15bc7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?=
<marmarek@invisiblethingslab.com>
Date: Fri, 19 Oct 2018 08:02:12 +0200
Subject: [PATCH] anaconda: use installer kernel parameters as default for
installed system
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
This way if any kernel parameter was need to boot Qubes on particular hardware, it will also be set to installed system
Fixes QubesOS/qubes-issues#1650
Signed-off-by: Frédéric Pierret <frederic.epitre@orange.fr>
---
pyanaconda/bootloader.py | 18 ++++++++----------
1 file changed, 8 insertions(+), 10 deletions(-)
diff --git a/pyanaconda/bootloader.py b/pyanaconda/bootloader.py
index 908020ad0..963af46f9 100644
--- a/pyanaconda/bootloader.py
+++ b/pyanaconda/bootloader.py
@@ -229,14 +229,13 @@ class BootLoader(object):
def stage2_format_types(self):
return ["ext4", "ext3", "ext2"]
- # this is so stupid...
- global_preserve_args = ["speakup_synth", "apic", "noapic", "apm", "ide",
- "noht", "acpi", "video", "pci", "nodmraid",
- "nompath", "nomodeset", "noiswmd", "fips",
- "selinux", "biosdevname", "ipv6.disable",
- "net.ifnames"]
preserve_args = []
+ global_no_preserve_args = ["stage2", "root", "rescue",
+ "rd.live.check", "ip", "repo", "ks",
+ "rd.lvm", "rd.md", "rd.luks", "rd.dm",
+ "rd.lvm.lv"]
+
_trusted_boot = False
def __init__(self):
@@ -870,11 +869,10 @@ class BootLoader(object):
self.boot_args.add("iscsi_firmware")
#
- # preservation of some of our boot args
- # FIXME: this is stupid.
+ # preservation of most of our boot args
#
- for opt in self.global_preserve_args + self.preserve_args:
- if opt not in flags.cmdline:
+ for opt in flags.cmdline.keys():
+ if opt in self.global_no_preserve_args:
continue
arg = flags.cmdline.get(opt)
--
2.14.4