mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-08-24 10:39:24 -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
|
@ -13,25 +13,25 @@ ram_wipe_check_needshutdown() {
|
|||
kernel_wiperam_setting=$(getarg wiperam)
|
||||
|
||||
if [ "$kernel_wiperam_setting" = "skip" ]; then
|
||||
info "wipe-ram-needshutdown.sh: Skip, because wiperam=skip kernel parameter detected, OK."
|
||||
warn "wipe-ram-needshutdown.sh: Skip, because wiperam=skip kernel parameter detected, OK."
|
||||
return 0
|
||||
fi
|
||||
|
||||
if [ "$kernel_wiperam_setting" = "force" ]; then
|
||||
info "wipe-ram-needshutdown.sh: wiperam=force detected, OK."
|
||||
warn "wipe-ram-needshutdown.sh: wiperam=force detected, OK."
|
||||
else
|
||||
detect_virt_output="$(systemd-detect-virt 2>&1)"
|
||||
detect_virt_exit_code="$?"
|
||||
info "wipe-ram-needshutdown.sh: detect_virt_output: '$detect_virt_output'"
|
||||
info "wipe-ram-needshutdown.sh: detect_virt_exit_code: '$detect_virt_exit_code'"
|
||||
warn "wipe-ram-needshutdown.sh: detect_virt_output: '$detect_virt_output'"
|
||||
warn "wipe-ram-needshutdown.sh: detect_virt_exit_code: '$detect_virt_exit_code'"
|
||||
if [ "$detect_virt_exit_code" = "0" ]; then
|
||||
info "wipe-ram-needshutdown.sh: Skip, because running inside a VM detected and not using wiperam=force kernel parameter, OK."
|
||||
warn "wipe-ram-needshutdown.sh: Skip, because running inside a VM detected and not using wiperam=force kernel parameter, OK."
|
||||
return 0
|
||||
fi
|
||||
info "wipe-ram-needshutdown.sh: Bare metal (not running inside a VM) detected, OK."
|
||||
warn "wipe-ram-needshutdown.sh: Bare metal (not running inside a VM) detected, OK."
|
||||
fi
|
||||
|
||||
info "wipe-ram-needshutdown.sh: Calling dracut function need_shutdown to drop back into initramfs at shutdown, OK."
|
||||
warn "wipe-ram-needshutdown.sh: Calling dracut function need_shutdown to drop back into initramfs at shutdown, OK."
|
||||
need_shutdown
|
||||
|
||||
return 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue