mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-07-10 16:01:00 +07:00
cleanup
This commit is contained in:
@ -7,16 +7,11 @@
|
|||||||
type getarg >/dev/null 2>&1 || . /lib/dracut-lib.sh
|
type getarg >/dev/null 2>&1 || . /lib/dracut-lib.sh
|
||||||
|
|
||||||
ram_wipe_check_needshutdown() {
|
ram_wipe_check_needshutdown() {
|
||||||
local OLD_DRACUT_QUIET
|
|
||||||
OLD_DRACUT_QUIET="$DRACUT_QUIET"
|
|
||||||
DRACUT_QUIET='no'
|
|
||||||
|
|
||||||
local kernel_wiperam_setting
|
local kernel_wiperam_setting
|
||||||
kernel_wiperam_setting=$(getarg wiperam)
|
kernel_wiperam_setting=$(getarg wiperam)
|
||||||
|
|
||||||
if [ "$kernel_wiperam_setting" = "skip" ]; then
|
if [ "$kernel_wiperam_setting" = "skip" ]; then
|
||||||
info "wipe-ram-needshutdown.sh: Skip, because wiperam=skip kernel parameter detected, OK."
|
info "wipe-ram-needshutdown.sh: Skip, because wiperam=skip kernel parameter detected, OK."
|
||||||
DRACUT_QUIET="$OLD_DRACUT_QUIET"
|
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -29,7 +24,6 @@ ram_wipe_check_needshutdown() {
|
|||||||
info "wipe-ram-needshutdown.sh: detect_virt_exit_code: '$detect_virt_exit_code'"
|
info "wipe-ram-needshutdown.sh: detect_virt_exit_code: '$detect_virt_exit_code'"
|
||||||
if [ "$detect_virt_exit_code" = "0" ]; then
|
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"
|
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
info "wipe-ram-needshutdown.sh: Bare metal (not running inside a VM) detected, OK."
|
info "wipe-ram-needshutdown.sh: Bare metal (not running inside a VM) detected, OK."
|
||||||
@ -38,7 +32,6 @@ ram_wipe_check_needshutdown() {
|
|||||||
info "wipe-ram-needshutdown.sh: Calling dracut function need_shutdown to drop back into initramfs at shutdown, OK."
|
info "wipe-ram-needshutdown.sh: Calling dracut function need_shutdown to drop back into initramfs at shutdown, OK."
|
||||||
need_shutdown
|
need_shutdown
|
||||||
|
|
||||||
DRACUT_QUIET="$OLD_DRACUT_QUIET"
|
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user