mirror of
https://github.com/Kicksecure/security-misc.git
synced 2024-12-27 23:59:25 -05:00
minor
This commit is contained in:
parent
450ff378b0
commit
2860560edb
@ -46,4 +46,3 @@ install() {
|
|||||||
installkernel() {
|
installkernel() {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25,11 +25,10 @@ ram_wipe_check_needshutdown() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$wipe_action" = "error" ]; then
|
if [ "$wipe_action" = "error" ]; then
|
||||||
info "Choice of shutdown option led to an error. Shutting down..."
|
info "Choice of shutdown option led to an error. Shutting down..."
|
||||||
sleep 5
|
sleep 5
|
||||||
poweroff -f
|
poweroff -f
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
ram_wipe_check_needshutdown
|
ram_wipe_check_needshutdown
|
||||||
|
|
||||||
|
@ -8,21 +8,19 @@ ram_wipe_action() {
|
|||||||
local kernel_wiperam_exit
|
local kernel_wiperam_exit
|
||||||
kernel_wiperam_exit=$(getarg wiperamexit)
|
kernel_wiperam_exit=$(getarg wiperamexit)
|
||||||
|
|
||||||
|
|
||||||
if [ "$kernel_wiperam_exit" = "no" ]; then
|
if [ "$kernel_wiperam_exit" = "no" ]; then
|
||||||
info "INFO: Skip, because wiperamexit=no kernel parameter detected, OK."
|
info "INFO: Skip, because wiperamexit=no kernel parameter detected, OK."
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if [ "$kernel_wiperam_exit" != "yes" ]; then
|
if [ "$kernel_wiperam_exit" != "yes" ]; then
|
||||||
info "INFO: Skip, becuase wiperamexit parameter is not used. "
|
info "INFO: Skip, becuase wiperamexit parameter is not used."
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
info "INFO: wiperamexit=yes. Running second RAM wipe... "
|
info "INFO: wiperamexit=yes. Running second RAM wipe..."
|
||||||
|
|
||||||
sdmem -l -l -v
|
sdmem -l -l -v
|
||||||
}
|
}
|
||||||
ram_wipe_action
|
|
||||||
|
|
||||||
|
ram_wipe_action
|
||||||
|
@ -8,31 +8,31 @@
|
|||||||
|
|
||||||
# called by dracut
|
# called by dracut
|
||||||
check() {
|
check() {
|
||||||
require_binaries sync || return 1
|
require_binaries sync || return 1
|
||||||
require_binaries sleep || return 1
|
require_binaries sleep || return 1
|
||||||
require_binaries sdmem || return 1
|
require_binaries sdmem || return 1
|
||||||
require_binaries dmsetup || return 1
|
require_binaries dmsetup || return 1
|
||||||
require_binaries systemd-detect-virt || return 1
|
require_binaries systemd-detect-virt || return 1
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
# called by dracut
|
# called by dracut
|
||||||
depends() {
|
depends() {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
# called by dracut
|
# called by dracut
|
||||||
install() {
|
install() {
|
||||||
inst_multiple sync
|
inst_multiple sync
|
||||||
inst_multiple sleep
|
inst_multiple sleep
|
||||||
inst_multiple sdmem
|
inst_multiple sdmem
|
||||||
inst_multiple dmsetup
|
inst_multiple dmsetup
|
||||||
inst_multiple systemd-detect-virt
|
inst_multiple systemd-detect-virt
|
||||||
inst_hook shutdown 40 "$moddir/wipe-ram.sh"
|
inst_hook shutdown 40 "$moddir/wipe-ram.sh"
|
||||||
inst_hook cleanup 80 "$moddir/wipe-ram-needshutdown.sh"
|
inst_hook cleanup 80 "$moddir/wipe-ram-needshutdown.sh"
|
||||||
}
|
}
|
||||||
|
|
||||||
# called by dracut
|
# called by dracut
|
||||||
installkernel() {
|
installkernel() {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
@ -64,7 +64,7 @@ ram_wipe() {
|
|||||||
sleep 3
|
sleep 3
|
||||||
else
|
else
|
||||||
info "\
|
info "\
|
||||||
WARNING: wipe-ram.sh:There are still mounted encrypted disks! RAM wipe failed!
|
WARNING: wipe-ram.sh: There are still mounted encrypted disks! RAM wipe failed!
|
||||||
|
|
||||||
debugging information:
|
debugging information:
|
||||||
dmsetup_expected_output: '$dmsetup_expected_output'
|
dmsetup_expected_output: '$dmsetup_expected_output'
|
||||||
|
Loading…
Reference in New Issue
Block a user