summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2025-11-11 19:02:38 +0530
committerGitHub <noreply@github.com>2025-11-11 19:02:38 +0530
commit835ac87b36577b770ba765fcbc00fd9885fb5855 (patch)
tree5e64bfba6ed0b03dcf225c2ed07418c35d6b09c4 /src/conf_mode
parent659f479cab45641bc0353b052c37e8d8377baf89 (diff)
parent6631fd47cb313258b869870982f7b3e2f970eaee (diff)
downloadvyos-1x-835ac87b36577b770ba765fcbc00fd9885fb5855.tar.gz
vyos-1x-835ac87b36577b770ba765fcbc00fd9885fb5855.zip
Merge pull request #4842 from Firefishy/T8003
T8003: Add early kernel panic reboot support
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/system_option.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/conf_mode/system_option.py b/src/conf_mode/system_option.py
index a0b3dd72c..80b9f96bd 100755
--- a/src/conf_mode/system_option.py
+++ b/src/conf_mode/system_option.py
@@ -196,6 +196,11 @@ def generate(options):
if 'quiet' in options['kernel']:
cmdline_options.append('quiet')
+ # Early reboot on kernel panic via kernel cmdline
+ # Keep this in sync with image_installer.py:get_cli_kernel_options()
+ if 'reboot_on_panic' in options:
+ cmdline_options.append('panic=60')
+
if 'disable_hpet' in kernel_opts:
cmdline_options.append('hpet=disable')