mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-08-18 02:10:14 -04:00
use warn instead of info for now
because dracut does not show info messages when kernel parameter quiet is set
This commit is contained in:
parent
7fa6946694
commit
d769099db1
4 changed files with 24 additions and 24 deletions
|
@ -21,22 +21,22 @@ ram_wipe_action() {
|
|||
kernel_wiperam_exit=$(getarg wiperamexit)
|
||||
|
||||
if [ "$kernel_wiperam_exit" = "no" ]; then
|
||||
info "wipe-ram.sh wiperamexit: Skip, because wiperamexit=no kernel parameter detected, OK."
|
||||
warn "wipe-ram.sh wiperamexit: Skip, because wiperamexit=no kernel parameter detected, OK."
|
||||
return 0
|
||||
fi
|
||||
|
||||
if [ "$kernel_wiperam_exit" != "yes" ]; then
|
||||
info "wipe-ram.sh wiperamexit: Skip, because wiperamexit parameter is unset."
|
||||
warn "wipe-ram.sh wiperamexit: Skip, because wiperamexit parameter is unset."
|
||||
return 0
|
||||
fi
|
||||
|
||||
info "wipe-ram.sh wiperamexit: wiperamexit=yes, therefore running second RAM wipe..."
|
||||
warn "wipe-ram.sh wiperamexit: wiperamexit=yes, therefore running second RAM wipe..."
|
||||
|
||||
drop_caches
|
||||
sdmem -l -l -v
|
||||
drop_caches
|
||||
|
||||
info "wipe-ram.sh wiperamexit: Second RAM wipe completed."
|
||||
warn "wipe-ram.sh wiperamexit: Second RAM wipe completed."
|
||||
}
|
||||
|
||||
ram_wipe_action
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue