|
|
ccd223 |
From aa335261b2c4771442d82ee1622f189603d4a43d Mon Sep 17 00:00:00 2001
|
|
|
ccd223 |
From: Kairui Song <kasong@redhat.com>
|
|
|
ccd223 |
Date: Wed, 2 Jun 2021 16:44:08 +0800
|
|
|
ccd223 |
Subject: [PATCH 1/2] Make kdump options visible by default
|
|
|
ccd223 |
|
|
|
ccd223 |
Currently this addon is completely hidden unless kdump_addon=on
|
|
|
ccd223 |
is set, make it visible by default. Kdump is still disabled by default,
|
|
|
ccd223 |
just show the kdump tab.
|
|
|
ccd223 |
|
|
|
ccd223 |
Signed-off-by: Kairui Song <kasong@redhat.com>
|
|
|
ccd223 |
---
|
|
|
ccd223 |
com_redhat_kdump/service/initialization.py | 2 +-
|
|
|
ccd223 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
ccd223 |
|
|
|
ccd223 |
diff --git a/com_redhat_kdump/service/initialization.py b/com_redhat_kdump/service/initialization.py
|
|
|
ccd223 |
index 2bdbe6e..0e247df 100644
|
|
|
ccd223 |
--- a/com_redhat_kdump/service/initialization.py
|
|
|
ccd223 |
+++ b/com_redhat_kdump/service/initialization.py
|
|
|
ccd223 |
@@ -27,6 +27,6 @@ __all__ = ["check_initial_conditions"]
|
|
|
ccd223 |
|
|
|
ccd223 |
def check_initial_conditions():
|
|
|
ccd223 |
"""Can the Kdump service run?"""
|
|
|
ccd223 |
- if not kernel_arguments.is_enabled("kdump_addon"):
|
|
|
ccd223 |
+ if kernel_arguments.get("kdump_addon", 1) in ["0", "off", False]:
|
|
|
ccd223 |
log.debug("The kdump add-on is disabled. Quit.")
|
|
|
ccd223 |
sys.exit(1)
|
|
|
ccd223 |
--
|
|
|
ccd223 |
2.31.1
|
|
|
ccd223 |
|