artix

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

commit 346730ca96a19e8d8026ff240f048b33940ce28f
parent 141b55d47340fedfbd291d42e6d5bad6f21d4ae7
Author: awy <awy@awy.one>
Date:   Thu, 10 Apr 2025 16:24:18 +0300

grub fix

Diffstat:
Minstall.sh | 1+
Mpost_chroot.sh | 2++
2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/install.sh b/install.sh @@ -163,6 +163,7 @@ export userpass export kerneltype export partitions export encryption +export cryptpass cp post_chroot.sh /mnt artix-chroot /mnt ./post_chroot.sh diff --git a/post_chroot.sh b/post_chroot.sh @@ -31,6 +31,8 @@ binkernel() sed -i "s#GRUB_CMDLINE_LINUX_DEFAULT=.*#GRUB_CMDLINE_LINUX_DEFAULT=\"loglevel=3 quiet options cryptdevice=UUID=$UUID_ROOT:cryptlvm root=UUID=$UUID_CRYPTROOT rw intel_iommu=on\"#g" /etc/default/grub sed -i "s#HOOKS=.*#HOOKS=(base udev autodetect microcode modconf keyboard keymap consolefont block encrypt lvm2 filesystems fsck)#g" /etc/mkinitcpio.conf sed -i "/^#GRUB_ENABLE_CRYPTODISK/s/^#//" /etc/default/grub + # for grub to work + printf "%s" "$cryptpass" | cryptsetup luksConvertKey --pbkdf pbkdf2 /dev/"$rootdrive" -d - else sed -i "s#GRUB_CMDLINE_LINUX_DEFAULT=.*#GRUB_CMDLINE_LINUX_DEFAULT=\"loglevel=3 quiet options root=UUID=$UUID_ROOT rw intel_iommu=on\"#g" /etc/default/grub sed -i "s#HOOKS=.*#HOOKS=(base udev autodetect microcode modconf keyboard keymap consolefont block filesystems fsck)#g" /etc/mkinitcpio.conf