mirror of
https://github.com/Kicksecure/security-misc.git
synced 2024-12-22 14:53:36 +07:00
moved /etc/dkms/framework.conf.d/30_security-misc.conf (renamed) to usability-misc
This commit is contained in:
parent
7c06e22c7d
commit
50161f5d79
3
debian/security-misc.maintscript
vendored
3
debian/security-misc.maintscript
vendored
@ -81,3 +81,6 @@ rm_conffile /etc/default/grub.d/40_only_allow_signed_modules.cfg
|
||||
|
||||
## renamed to /etc/default/grub.d/41_quiet_boot.cfg
|
||||
rm_conffile /etc/default/grub.d/41_quiet.cfg
|
||||
|
||||
## moved to usability-misc
|
||||
rm_conffile /etc/dkms/framework.conf.d/30_security-misc.conf
|
||||
|
@ -1,20 +0,0 @@
|
||||
## Copyright (C) 2023 - 2024 ENCRYPTED SUPPORT LP <adrelanos@whonix.org>
|
||||
## See the file COPYING for copying conditions.
|
||||
|
||||
## Lower parallel compilation jobs to 1 if less than 2 GB RAM to avoid freezing of virtual machines.
|
||||
## This does not necessarily belong into security-misc.
|
||||
##
|
||||
## Example here:
|
||||
## https://forums.whonix.org/t/linux-kernel-runtime-guard-lkrg-linux-kernel-runtime-integrity-checking-and-exploit-detection/8477/26
|
||||
##
|
||||
## This might no longer be possible in the future. See:
|
||||
## "Stop handling dkms.conf as a bash/shell script"
|
||||
## https://github.com/dell/dkms/issues/414
|
||||
ENOUGH_RAM="1950"
|
||||
total_ram="$(free -m | sed -n -e '/^Mem:/s/^[^0-9]*\([0-9]*\) .*/\1/p')"
|
||||
if [ "$total_ram" -ge "$ENOUGH_RAM" ]; then
|
||||
true "INFO: Enough RAM available. Not lowering compilation cores."
|
||||
else
|
||||
true "INFO: Not enough RAM available. Lowering compilation cores to 1."
|
||||
parallel_jobs=1
|
||||
fi
|
Loading…
Reference in New Issue
Block a user