melawy-archiso-config/Melawy-Linux-NetInstall/airootfs/etc/mkinitcpio.d/linux-xanmod.preset

25 lines
673 B
Plaintext

# mkinitcpio preset file for the 'Melawy Linux' package on archiso
KNAME="xanmod"
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-xanmod-anbox"
ALL_config="/etc/mkinitcpio.conf"
ALL_kver="/usr/lib/modules/$KVER/vmlinuz"
ALL_kver="/boot/vmlinuz-linux-xanmod-anbox"
ALL_microcode=(/boot/*-ucode.img)
PRESETS=('archiso')
#archiso_config="/etc/mkinitcpio.conf"
archiso_image="/boot/initramfs-linux-xanmod-anbox.img"
#archiso_uki="/efi/EFI/Linux/linux-xanmod-anbox.efi"
archiso_uki="/boot/linux-xanmod-anbox.efi"
archiso_options="--cmdline /proc/cmdline"