commit 131938fb9f3d7f0733310186f6d44fa64fcaed65
parent 559a97ebd814ca2597d65c2c0ff385238d8ba80a
Author: Awnrt <roman.levikoff@gmail.com>
Date: Fri, 17 May 2024 12:11:27 +0300
no swap by default
Diffstat:
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/install.sh b/install.sh
@@ -1,9 +1,9 @@
read -p "Enter disk label (e.g., sda): " disk_drive
-read -p "Enter comma-separated partition numbers (e.g., 5,6,7 for 5 boot 6 swap 7 root): " partitions
+read -p "Enter comma-separated partition numbers (e.g., 5,6 for 5 boot 6 root): " partitions
IFS=',' read -r -a partition_array <<< "$partitions"
-root_drive="$disk_drive${partition_array[2]}"
-swap_drive="$disk_drive${partition_array[1]}"
+root_drive="$disk_drive${partition_array[1]}"
+#swap_drive="$disk_drive${partition_array[1]}"
boot_drive="$disk_drive${partition_array[0]}"
read -p "Hostname: " _hostname
@@ -15,8 +15,8 @@ read -p "root password: " _rootpasswd
read -p "user password: " _userpasswd
mkfs.ext4 /dev/$root_drive
-mkswap /dev/$swap_drive
-swapon /dev/$swap_drive
+#mkswap /dev/$swap_drive
+#swapon /dev/$swap_drive
mkfs.fat -F 32 /dev/$boot_drive
mount /dev/$root_drive /mnt
@@ -36,7 +36,7 @@ fstabgen -U /mnt >> /mnt/etc/fstab
cp post_chroot.sh /mnt
export root_drive
-export swap_drive
+#export swap_drive
export boot_drive
export _hostname
export _username
diff --git a/post_chroot.sh b/post_chroot.sh
@@ -47,7 +47,7 @@ grub-mkconfig -o /boot/grub/grub.cfg
pacman -S linux-headers --noconfirm
pacman -S trizen --noconfirm
-pacman -S nvidia-dkms nvidia-utils opencl-nvidia lib32-nvidia-utils lib32-opencl-nvidia nvidia-settings libxnvctrl --noconfirm
+pacman -S nvidia-open-dkms nvidia-utils opencl-nvidia lib32-nvidia-utils lib32-opencl-nvidia nvidia-settings libxnvctrl --noconfirm
sudo sed -i -e 's/MODULES=()/MODULES=(nvidia nvidia_modeset nvidia_uvm nvidia_drm)/g' /etc/mkinitcpio.conf