summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2025-04-26 22:22:04 +0200
committerChristian Breunig <christian@breunig.cc>2025-04-26 22:23:21 +0200
commit07c3c89d4bf7b48b90cb603f716ed5c344dc5f15 (patch)
tree7d46beafd6f63dce53515ea20cbce1bf01335e2f /src
parent310427f2722ef5b3ed446b4588e77bf1076dfd3d (diff)
downloadvyos-1x-07c3c89d4bf7b48b90cb603f716ed5c344dc5f15.tar.gz
vyos-1x-07c3c89d4bf7b48b90cb603f716ed5c344dc5f15.zip
T7397: add "system kernel option quiet" to suppress boot messages
Add option to limit the number of messages that are displayed on the console during the boot process and to persist this setting with image upgrades. set system option kernel quiet
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/system_option.py4
-rwxr-xr-xsrc/op_mode/image_installer.py2
2 files changed, 5 insertions, 1 deletions
diff --git a/src/conf_mode/system_option.py b/src/conf_mode/system_option.py
index b45a9d8a6..3d76a1eaa 100755
--- a/src/conf_mode/system_option.py
+++ b/src/conf_mode/system_option.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
#
-# Copyright (C) 2019-2024 VyOS maintainers and contributors
+# Copyright (C) 2019-2025 VyOS maintainers and contributors
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 or later as
@@ -136,6 +136,8 @@ def generate(options):
mode = options['kernel']['amd_pstate_driver']
cmdline_options.append(
f'initcall_blacklist=acpi_cpufreq_init amd_pstate={mode}')
+ if 'quiet' in options['kernel']:
+ cmdline_options.append('quiet')
grub_util.update_kernel_cmdline_options(' '.join(cmdline_options))
return None
diff --git a/src/op_mode/image_installer.py b/src/op_mode/image_installer.py
index 2660309a5..540967c1f 100755
--- a/src/op_mode/image_installer.py
+++ b/src/op_mode/image_installer.py
@@ -504,6 +504,8 @@ def get_cli_kernel_options(config_file: str) -> list:
mode = kernel_options['amd-pstate-driver']
cmdline_options.append(
f'initcall_blacklist=acpi_cpufreq_init amd_pstate={mode}')
+ if 'quiet' in kernel_options:
+ cmdline_options.append('quiet')
return cmdline_options