Build script fix to KVER standard variable | additional trimming & general config tweaks
This commit is contained in:
parent
6176be7054
commit
f9df8767a7
File diff suppressed because it is too large
Load Diff
@ -11,7 +11,7 @@ sudo dnf install binutils /usr/include/{libelf.h,openssl/pkcs7.h} \
|
||||
|
||||
# Staging w/ error handling
|
||||
if [[ ! -f /usr/src/"$KVER".tar.gz ]]; then
|
||||
/usr/bin/curl --verbose --tlsv1.3 --proto =https -L -O --url "https://github.com/anthraxx/linux-hardened/archive/refs/tags/$KVER.tar.gz"
|
||||
/usr/bin/curl --verbose --tlsv1.3 --proto =https -L -O --url "https://github.com/anthraxx/linux-hardened/archive/refs/tags/"$KVER".tar.gz"
|
||||
fi
|
||||
|
||||
if [[ ! -d /usr/src/linux-hardened-"$KVER" ]]; then
|
||||
@ -19,7 +19,7 @@ if [[ ! -d /usr/src/linux-hardened-"$KVER" ]]; then
|
||||
fi
|
||||
|
||||
cd /usr/src/linux-hardened-"$KVER"
|
||||
wget https://0xacab.org/optout/plague-kernel/-/raw/main/6.6.13-hardened.config -O .config
|
||||
wget https://0xacab.org/optout/plague-kernel/-/raw/main/"$KVER".config -O .config
|
||||
|
||||
|
||||
# Compilation
|
||||
@ -33,10 +33,9 @@ make -j $(nproc --all)
|
||||
# Installing kernel
|
||||
## Ensure /boot is rw
|
||||
mount -o remount,rw /boot
|
||||
command -v installkernel && sudo make modules_install install
|
||||
make -j $(nproc --all)
|
||||
command -v installkernel && make modules_install INSTALL_MOD_STRIP=1 install
|
||||
|
||||
# remove sysmap/signing keys
|
||||
rm /lib/modules/"$KVER"_1/source/certs/signing_key*
|
||||
rm /lib/modules/"$KVER"_1/source/System.map
|
||||
rm /lib/modules/"$KVER"_1/source
|
||||
rm /lib/modules/"$KVER"_1/build
|
||||
rm /lib/modules/"$KVER"_1/source/System.map
|
Loading…
Reference in New Issue
Block a user