aboutsummaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/install.sh b/install.sh
index a04949c..184b348 100755
--- 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