diff options
author | Florian La Roche <florian.laroche@googlemail.com> | 2021-09-30 08:15:48 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-09-30 10:26:55 +0300 |
commit | c117a1fdda0824456c5018b12da1eb77e8a1b461 (patch) | |
tree | 66efd532620140810f66b182b462acbf4afdf62a | |
parent | cbd86eb1b70738793b8849bbac54f4a28a1dbe33 (diff) | |
download | vmdb2-c117a1fdda0824456c5018b12da1eb77e8a1b461.tar.gz |
grub_plugin.py: set grub option systemd.show_status only once
These items are fixed with this change:
- "systemd.show_status=true" is always added, even if it was turned off
later on.
- If the option quiet is selected, then "systemd.show_status=false" is added
twice instead of only once.
With this patch "systemd.show_status" is only set once with either the value
"true" or "false".
Signed-off-by: Florian La Roche <Florian.LaRoche@gmail.com>
-rw-r--r-- | vmdb/plugins/grub_plugin.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/vmdb/plugins/grub_plugin.py b/vmdb/plugins/grub_plugin.py index 5b2e43d..469bd50 100644 --- a/vmdb/plugins/grub_plugin.py +++ b/vmdb/plugins/grub_plugin.py @@ -187,7 +187,6 @@ class GrubStepRunner(vmdb.StepRunnerInterface): "biosdevname=0", "net.ifnames=0", "consoleblank=0", - "systemd.show_status=true", "rw", ] if console == "serial": @@ -210,7 +209,12 @@ class GrubStepRunner(vmdb.StepRunnerInterface): "quiet", "systemd.show_status=false", "rd.systemd.show_status=false", - "systemd.show_status=false", + ] + ) + else: + kernel_params.extend( + [ + "systemd.show_status=true", ] ) |