mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-01-28 05:06:58 -05:00
debugging
This commit is contained in:
parent
c29b21c08a
commit
1144b39e5e
@ -22,7 +22,11 @@ ram_wipe_check_needshutdown() {
|
|||||||
if [ "$kernel_wiperam_setting" = "force" ]; then
|
if [ "$kernel_wiperam_setting" = "force" ]; then
|
||||||
info "wipe-ram-needshutdown.sh: wiperam=force detected, OK."
|
info "wipe-ram-needshutdown.sh: wiperam=force detected, OK."
|
||||||
else
|
else
|
||||||
if systemd-detect-virt &>/dev/null ; then
|
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'"
|
||||||
|
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."
|
info "wipe-ram-needshutdown.sh: Skip, because running inside a VM detected and not using wiperam=force kernel parameter, OK."
|
||||||
DRACUT_QUIET="$OLD_DRACUT_QUIET"
|
DRACUT_QUIET="$OLD_DRACUT_QUIET"
|
||||||
return 0
|
return 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user