artix

posix artix installation script
git clone https://git.awy.one/artix.git
Log | Files | Refs | README | LICENSE

commit 2e4e0fe7452b9b72ce2e7fdbafb324a81cfb3f74
parent bd1dca3752d436767377d9b616f2e3d011f81b8e
Author: awy <awy@awy.one>
Date:   Fri,  6 Jun 2025 18:38:44 +0300

linux-zen kernel fix mkinitcpio

Diffstat:
Minstall.sh | 1-
Mpost_chroot.sh | 14++++++++++++++
2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/install.sh b/install.sh @@ -175,7 +175,6 @@ artix-chroot /mnt ./post_chroot.sh # cleaning up if [ "$kerneltype" != 3 ]; then rm /mnt/boot/*.img - rm /mnt/boot/vmlinuz-linux fi umount -R /mnt diff --git a/post_chroot.sh b/post_chroot.sh @@ -31,11 +31,25 @@ binkernel() echo "options hid_apple fnmode=0" > /etc/modprobe.d/hid_apple.conf mkdir -p /etc/kernel mkdir -p /boot/EFI/BOOT + + case $kerneltype in + 1) cat <<EOL > /etc/mkinitcpio.d/linux.preset ALL_kver="/boot/vmlinuz-linux" PRESETS=('default') default_uki="/boot/EFI/BOOT/BOOTX64.efi" EOL +;; + 2) +cat <<EOL > /etc/mkinitcpio.d/linux-zen.preset +ALL_kver="/boot/vmlinuz-linux-zen" +PRESETS=('default') +default_uki="/boot/EFI/BOOT/BOOTX64.efi" +EOL +;; + *) printf "Invalid kernel" && exit 1 ;; + esac + if [ "$encryption" = 1 ]; then echo "cryptdevice=UUID=$UUID_ROOT:cryptlvm root=UUID=$UUID_CRYPTROOT rw intel_iommu=on" > /etc/kernel/cmdline sed -i "s#HOOKS=.*#HOOKS=(base udev autodetect microcode modconf keyboard keymap consolefont block encrypt lvm2 filesystems fsck)#g" /etc/mkinitcpio.conf