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 0315f3e..48dc3e6 100755 --- a/usr/libexec/security-misc/cold-boot-attack-defense-kexec-prepare +++ b/usr/libexec/security-misc/cold-boot-attack-defense-kexec-prepare @@ -14,16 +14,12 @@ cmdline=$(cat /proc/cmdline) kernel=$(echo "$cmdline" | grep -o 'BOOT_IMAGE=\S*' | cut -d '=' -f 2) initrd=$(echo "$kernel" | sed "s#vmlinuz#initrd.img#") -if test -e "$initrd"; then - echo "$0: INFO: Initrd File Found" -else +if ! test -e "$initrd"; then echo "$0: ERROR: Initrd File NOT FOUND" exit 1 fi -if test -e "$kernel"; then - echo "$0: INFO: Kernel File Found" -else +if ! test -e "$kernel"; then echo "$0: ERROR: Kernel File NOT FOUND" exit 1 fi