aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xinstall.sh1
-rwxr-xr-xpost_chroot.sh2
2 files changed, 2 insertions, 1 deletions
diff --git a/install.sh b/install.sh
index fb516fc..63ce9fe 100755
--- a/install.sh
+++ b/install.sh
@@ -50,6 +50,7 @@ elif [ "$_kernelflag" -eq 2 ]; then
echo "UUID=$UUID_BOOT /boot vfat defaults,noatime 0 2" > /mnt/etc/fstab
echo "UUID=$UUID_ROOT / ext4 defaults,noatime 0 1" >> /mnt/etc/fstab
cp post_chroot.sh /mnt
+ cp .config /mnt/usr/src
else
printf ${LIGHTRED}"Wrong kernelflag value.${NoColor}\n"
exit 1
diff --git a/post_chroot.sh b/post_chroot.sh
index e3680e4..a0bf9ec 100755
--- a/post_chroot.sh
+++ b/post_chroot.sh
@@ -33,7 +33,7 @@ elif [ "$_kernelflag" -eq 2 ]; then
rm -f "linux-6.10.6.tar.xz"
mv "linux-6.10.6" "linux"
cd "linux"
- curl -LO "https://raw.githubusercontent.com/awnrt/artix/main/.config"
+ mv /usr/src/.config .config
sed -i -e '/^CONFIG_CMDLINE="root=PARTUUID=.*/c\' -e "CONFIG_CMDLINE=\"root=PARTUUID=$PARTUUID_ROOT init=/sbin/openrc-init nvidia_drm.modeset=1 nvidia_drm.fbdev=1 intel_iommu=on\"" .config
pacman -S bc perl bison make diffutils gcc flex rsync --noconfirm
make oldconfig