aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Moravec <pmoravec@redhat.com>2019-08-25 09:09:31 +0200
committerPavel Moravec <pmoravec@redhat.com>2019-08-25 09:09:31 +0200
commita215548e5cc8074d9f8e5467ad20d6ec9b4de761 (patch)
tree8a119e67913f3aea266d5de920829d2a10efac2f
parent5da92e8464f15cf89fd8d9e5c76c26663977ce10 (diff)
downloadsos-a215548e5cc8074d9f8e5467ad20d6ec9b4de761.tar.gz
[boot] Capture SecureBoot configuration state
Adds collection of mokutil to show is SecureBoot is enabled on the system or not. Fixes: #1574 Signed-off-by: Jake Hunsaker <jhunsake@redhat.com> Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
-rw-r--r--sos/plugins/boot.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/sos/plugins/boot.py b/sos/plugins/boot.py
index 31892ef7..0d8861f6 100644
--- a/sos/plugins/boot.py
+++ b/sos/plugins/boot.py
@@ -36,7 +36,10 @@ class Boot(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
"lsinitrd"
])
- self.add_cmd_output("efibootmgr -v")
+ self.add_cmd_output([
+ "efibootmgr -v",
+ "mokutil --sb-state"
+ ])
if self.get_option("all-images"):
for image in glob('/boot/initr*.img'):