From a6bee1493d4113ab63f8d0671f97989b00d23544 Mon Sep 17 00:00:00 2001 From: Patrick Schleizer Date: Thu, 28 Jul 2022 09:55:12 -0400 Subject: [PATCH] cold-boot-attack-defense wait longer to make messages readable by user --- .../dracut/modules.d/40cold-boot-attack-defense/wipe-ram.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 aefbd8d..3019ab0 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 @@ -59,6 +59,8 @@ ram_wipe() { if [ "$dmsetup_actual_output" = "$dmsetup_expected_output" ]; then echo "INFO: wipe-ram.sh: Success, there are no more mounted encrypted disks, OK." > /dev/kmsg + + sleep 3 else echo "\ WARNING: wipe-ram.sh:There are still mounted encrypted disks! RAM wipe failed! @@ -66,9 +68,10 @@ WARNING: wipe-ram.sh:There are still mounted encrypted disks! RAM wipe failed! debugging information: dmsetup_expected_output: '$dmsetup_expected_output' dmsetup_actual_output: '$dmsetup_actual_output'" > /dev/kmsg + + sleep 5 fi - sleep 3 } ram_wipe