From 3acb5c8d169019eb00019ed54a8f456b07150c71 Mon Sep 17 00:00:00 2001 From: Bandie Date: Thu, 22 Mar 2018 13:47:16 +0100 Subject: [PATCH] What about exit codes? --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 686f793..faff1c5 100644 --- a/README.md +++ b/README.md @@ -84,6 +84,17 @@ If you didn't read the instruction above here is what the scripts does: * `grub2-update-kernel-signature` is renewing the signatures in /boot/. (without subdirs) regardless if grub2-verify fails. +## Exit codes + +You might be interested in the exit codes of `grub2-verify` to use it in your monitoring tools: + +``` +0 - Everything is okay +1 - Found bad signatures +2 - No signatures found at all [GRUB2 is completely unsigned] +3 - Missing signatures [There are correct signatures but some files are unsigned] +``` + ## Troubleshooting