25 lines
657 B
Plaintext
25 lines
657 B
Plaintext
# mkinitcpio preset file for the 'linux-hardened' package on archiso
|
|
|
|
KNAME="hardened"
|
|
|
|
KVER=$(ls /usr/lib/modules/ | grep $KNAME | sort -V | tail -n 1)
|
|
|
|
if [[ -z "$KVER" ]]; then
|
|
exit
|
|
fi
|
|
|
|
cp -vf "/usr/lib/modules/$KVER/vmlinuz" "/boot/vmlinuz-linux-hardened"
|
|
|
|
ALL_config="/etc/mkinitcpio.conf"
|
|
ALL_kver="/usr/lib/modules/$KVER/vmlinuz"
|
|
ALL_kver="/boot/vmlinuz-linux-hardened"
|
|
ALL_microcode=(/boot/*-ucode.img)
|
|
|
|
PRESETS=('archiso')
|
|
|
|
#archiso_config="/etc/mkinitcpio.conf"
|
|
archiso_image="/boot/initramfs-linux-hardened.img"
|
|
#archiso_uki="/efi/EFI/Linux/linux-hardened.efi"
|
|
archiso_uki="/boot/linux-hardened.efi"
|
|
archiso_options="--cmdline /proc/cmdline"
|