diff options
author | Awnrt <roman.levikoff@gmail.com> | 2024-05-17 12:11:27 +0300 |
---|---|---|
committer | Awnrt <roman.levikoff@gmail.com> | 2024-05-17 12:11:27 +0300 |
commit | 131938fb9f3d7f0733310186f6d44fa64fcaed65 (patch) | |
tree | bd885925e1ff23c024c011ed38cafe0d74d59cab /install.sh | |
parent | 559a97ebd814ca2597d65c2c0ff385238d8ba80a (diff) |
no swap by default
Diffstat (limited to 'install.sh')
-rwxr-xr-x | install.sh | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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 |