From 92c543e71ff5386f4458102e1795132399292328 Mon Sep 17 00:00:00 2001 From: Patrick Schleizer Date: Wed, 29 Jun 2022 16:24:52 -0400 Subject: [PATCH] output --- .../40cold-boot-attack-defense/wipe-ram.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/usr/lib/dracut/modules.d/40cold-boot-attack-defense/wipe-ram.sh b/usr/lib/dracut/modules.d/40cold-boot-attack-defense/wipe-ram.sh index 7dc5000..29f5644 100755 --- a/usr/lib/dracut/modules.d/40cold-boot-attack-defense/wipe-ram.sh +++ b/usr/lib/dracut/modules.d/40cold-boot-attack-defense/wipe-ram.sh @@ -13,18 +13,18 @@ ram_wipe() { ## check_quiet should show info in console. DRACUT_QUIET='no' - info "$0: START: COLD BOOT ATTACK DEFENSE - RAM WIPE ON SHUTDOWN" - info "$0: Checking if there are still mounted encrypted disks..." + info "wipe-ram.sh: START: COLD BOOT ATTACK DEFENSE - RAM WIPE ON SHUTDOWN" + info "wipe-ram.sh: Checking if there are still mounted encrypted disks..." local dmsetup_actual_output dmsetup_expected_output dmsetup_actual_output="$(dmsetup ls --target crypt)" dmsetup_expected_output="No devices found" if [ "$dmsetup_actual_output" = "$dmsetup_expected_output" ]; then - info "$0: Success, there are no more mounted encrypted disks, OK." + info "wipe-ram.sh: Success, there are no more mounted encrypted disks, OK." else warn "\ -$0: There are still mounted encrypted disks! RAM wipe failed! +wipe-ram.sh: There are still mounted encrypted disks! RAM wipe failed! debugging information: dmsetup_expected_output: '$dmsetup_expected_output' @@ -33,7 +33,7 @@ dmsetup_actual_output: '$dmsetup_actual_output'" return 0 fi - info "$0: Starting RAM wipe..." + info "wipe-ram.sh: Starting RAM wipe..." ## - If DRACUT_QUIET previously was set to '', reset to '' for auto detection by check_quiet. ## - If DRACUT_QUIET previously was set to 'no', reset to 'no' for verbose output. @@ -47,8 +47,8 @@ dmsetup_actual_output: '$dmsetup_actual_output'" ## Reset to DRACUT_QUIET='no' so info messages can be shown. DRACUT_QUIET='no' - info "$0: RAM wipe completed, OK." - info "$0: END: COLD BOOT ATTACK DEFENSE - RAM WIPE ON SHUTDOWN" + info "wipe-ram.sh: RAM wipe completed, OK." + info "wipe-ram.sh: END: COLD BOOT ATTACK DEFENSE - RAM WIPE ON SHUTDOWN" ## Restore to previous value. DRACUT_QUIET="$OLD_DRACUT_QUIET"