From bb2f0a3c4421e3686477a6dff81bb87d5dcd836f Mon Sep 17 00:00:00 2001 From: Patrick Schleizer Date: Sat, 7 Jan 2023 15:12:15 -0500 Subject: [PATCH] minor --- .../security-misc/cold-boot-attack-defense-kexec-prepare | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr/libexec/security-misc/cold-boot-attack-defense-kexec-prepare b/usr/libexec/security-misc/cold-boot-attack-defense-kexec-prepare index 4135614..eda249b 100755 --- a/usr/libexec/security-misc/cold-boot-attack-defense-kexec-prepare +++ b/usr/libexec/security-misc/cold-boot-attack-defense-kexec-prepare @@ -7,10 +7,10 @@ set -x set -e -# Get the kernel command-line arguments +## Get the kernel command-line arguments cmdline=$(cat /proc/cmdline) -# Get the current boot image +## Get the current boot image kernel=$(echo "$cmdline" | grep -o 'BOOT_IMAGE=\S*' | cut -d '=' -f 2) initrd=$(echo "$kernel" | sed "s#vmlinuz#initrd.img#") @@ -34,7 +34,7 @@ elif systemctl list-jobs | grep "halt.target" | grep -q "start"; then wiperamexit="yes" wiperamaction="halt" else - echo "$0: ERROR: No shutdown option found!" + echo "$0: INFO: No shutdown option found!" exit 0 fi