From: Daan De Meyer Date: Fri, 20 Jan 2023 09:15:56 +0000 (+0100) Subject: Remove default kernel command line arguments X-Git-Tag: v15~358 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d851ec26f4b312360da82851498de5f52740ec0;p=thirdparty%2Fmkosi.git Remove default kernel command line arguments The defaults are rather intrusive so let's not enable them by default but leave them for users to configure manually. --- diff --git a/NEWS.md b/NEWS.md index d089e5493..6e793fd58 100644 --- a/NEWS.md +++ b/NEWS.md @@ -38,6 +38,7 @@ the EPEL repository. - Removed `-stream` from CentOS release specifiers. Instead of specifying `8-stream`, you know just specify `8`. +- Removed default kernel command line arguments `rhgb`, `selinux=0` and `audit=0`. ## v14 diff --git a/mkosi/__init__.py b/mkosi/__init__.py index 46d8f7e2d..1b2bf5a9d 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -1770,7 +1770,7 @@ def create_parser() -> ArgumentParserMkosi: "--kernel-command-line", metavar="OPTIONS", action=SpaceDelimitedListAction, - default=["rhgb", "selinux=0", "audit=0"], + default=[], help="Set the kernel command line (only bootable images)", ) group.add_argument( diff --git a/tests/test_config_parser.py b/tests/test_config_parser.py index 110bf873c..a1dd18267 100644 --- a/tests/test_config_parser.py +++ b/tests/test_config_parser.py @@ -83,7 +83,7 @@ class MkosiConfig: "include_dir": None, "incremental": False, "install_dir": None, - "kernel_command_line": ["rhgb", "selinux=0", "audit=0"], + "kernel_command_line": [], "key": None, "local_mirror": None, "manifest_format": None,