improvements

This commit is contained in:
Patrick Schleizer 2022-06-29 11:14:52 -04:00
parent e5d85d69ef
commit 295811a88f
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48
2 changed files with 5 additions and 2 deletions

View File

@ -4,6 +4,7 @@
# called by dracut
check() {
require_binaries sleep || return 1
require_binaries dmsetup || return 1
require_binaries sdmem || return 1
return 0
@ -16,7 +17,9 @@ depends() {
# called by dracut
install() {
inst $(command -v sdmem) /bin/sdmem
inst_multiple sleep
inst_multiple sdmem
inst_multiple dmsetup
inst_hook shutdown 40 "$moddir/wipe.sh"
}

View File

@ -3,5 +3,5 @@
echo "Checking for mounted disks..."
dmsetup ls --target crypt
echo "WIPE RAM!"
/bin/sdmem -f
sdmem -f
echo "WIPE DONE!"