DistroBaker 93d277
From cf93029a69a5b7d21d9478fad0c5c619ea2008d1 Mon Sep 17 00:00:00 2001
DistroBaker 93d277
From: Jiri Konecny <jkonecny@redhat.com>
DistroBaker 93d277
Date: Mon, 8 Feb 2021 11:32:03 +0100
DistroBaker 93d277
Subject: [PATCH 3/3] Do not require inst. prefixes for Anaconda boot arguments
DistroBaker 93d277
 (#1907566)
DistroBaker 93d277
DistroBaker 93d277
Beaker needs more time for adaptation. Create this change to not break beaker
DistroBaker 93d277
for RHEL-9.
DistroBaker 93d277
DistroBaker 93d277
Related: rhbz#1907566
DistroBaker 93d277
---
DistroBaker 93d277
 anaconda.py                    | 3 ---
DistroBaker 93d277
 pyanaconda/argument_parsing.py | 2 +-
DistroBaker 93d277
 2 files changed, 1 insertion(+), 4 deletions(-)
DistroBaker 93d277
DistroBaker 93d277
diff --git a/anaconda.py b/anaconda.py
DistroBaker 93d277
index edd518046a..3dc424188f 100755
DistroBaker 93d277
--- a/anaconda.py
DistroBaker 93d277
+++ b/anaconda.py
DistroBaker 93d277
@@ -308,9 +308,6 @@ if __name__ == "__main__":
DistroBaker 93d277
         stdout_log.warning("Kernel boot argument '%s' detected. "
DistroBaker 93d277
                            "Did you want to use 'inst.%s' for the installer instead?",
DistroBaker 93d277
                            arg, arg)
DistroBaker 93d277
-    if removed_no_inst_args:
DistroBaker 93d277
-        stdout_log.warning("All Anaconda kernel boot arguments are now required to use "
DistroBaker 93d277
-                           "'inst.' prefix!")
DistroBaker 93d277
 
DistroBaker 93d277
     from pyanaconda import isys
DistroBaker 93d277
 
DistroBaker 93d277
diff --git a/pyanaconda/argument_parsing.py b/pyanaconda/argument_parsing.py
DistroBaker 93d277
index 330a71ed64..096b1eba9e 100644
DistroBaker 93d277
--- a/pyanaconda/argument_parsing.py
DistroBaker 93d277
+++ b/pyanaconda/argument_parsing.py
DistroBaker 93d277
@@ -388,7 +388,7 @@ def getArgumentParser(version_string, boot_cmdline=None):
DistroBaker 93d277
     # If require_prefix is False, it also accepts the option without the
DistroBaker 93d277
     # bootarg_prefix ('repo').
DistroBaker 93d277
     # See anaconda_optparse.py and KernelArguments (in flags.py) for details.
DistroBaker 93d277
-    ap = AnacondaArgumentParser(bootarg_prefix="inst.", require_prefix=True)
DistroBaker 93d277
+    ap = AnacondaArgumentParser(bootarg_prefix="inst.", require_prefix=False)
DistroBaker 93d277
     help_parser = HelpTextParser(os.path.join(datadir, "anaconda_options.txt"))
DistroBaker 93d277
 
DistroBaker 93d277
     # NOTE: store_false options will *not* get negated when the user does
DistroBaker 93d277
-- 
DistroBaker 93d277
2.29.2
DistroBaker 93d277