artix

desc
git clone https://git.awy.one/artix.git
Log | Files | Refs | README | LICENSE

commit e09b6a90bca01cd6ae1bd45113c702c162b72bd2
parent 9adcd50b1aab9b6b4daeeea9d1c234ac5455df10
Author: awy <awy@awy.one>
Date:   Sun,  9 Mar 2025 19:33:14 +0300

shcheck+

Diffstat:
Mpost_chroot.sh | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/post_chroot.sh b/post_chroot.sh @@ -36,14 +36,14 @@ binkernel(){ } customkernel(){ - latestKernel=$(curl -s https://www.kernel.org/ | grep -A 1 'latest_link' | grep -oP '[0-9]+\.[0-9]+(\.[0-9]+)?' | head -n 1) - majorVersion=$(echo "$latestKernel" | cut -d'.' -f1) + latestkernel=$(curl -s https://www.kernel.org/ | grep -A 1 'latest_link' | grep -oP '[0-9]+\.[0-9]+(\.[0-9]+)?' | head -n 1) + majorversion=$(echo "$latestkernel" | cut -d'.' -f1) pacman -S efibootmgr --noconfirm cd /usr/src/ - curl -Lo /usr/src/linux.tar.xz "https://cdn.kernel.org/pub/linux/kernel/v$majorVersion.x/linux-$latestKernel.tar.xz" + curl -Lo /usr/src/linux.tar.xz "https://cdn.kernel.org/pub/linux/kernel/v$majorversion.x/linux-$latestkernel.tar.xz" tar -xf "linux.tar.xz" rm -f "linux.tar.xz" - mv "linux-$latestKernel" "linux" + mv "linux-$latestkernel" "linux" cd "linux" mv /usr/src/.config .config sed -i -e '/^CONFIG_CMDLINE="root=PARTUUID=.*/c\' -e "CONFIG_CMDLINE=\"root=PARTUUID=$PARTUUID_ROOT init=/sbin/dinit-init nvidia_drm.modeset=1 nvidia_drm.fbdev=1\"" .config