diff --git a/.archlinux/install-scripts/001-preinstall b/.archlinux/install-scripts/001-preinstall index f973e3b..d45563b 100755 --- a/.archlinux/install-scripts/001-preinstall +++ b/.archlinux/install-scripts/001-preinstall @@ -14,9 +14,9 @@ timedatectl set-ntp true # enable boot for it. Then, create a primary swap partition with # the remaining disk space. parted /dev/sda mklabel msdos -parted /dev/sda mkpart primary ext4 1MiB 60GiB +parted /dev/sda mkpart primary ext4 1MiB $DISTSIZE parted /dev/sda set 1 boot on -parted /dev/sda mkpart primary linux-swap 60GiB 100% +parted /dev/sda mkpart primary linux-swap $DISTSIZE 100% # Format sda1 with ext4 and sda2 with swap mkfs -t ext4 /dev/sda1 diff --git a/.archlinux/install-scripts/install.sh b/.archlinux/install-scripts/install.sh index c21d1d6..a52f979 100755 --- a/.archlinux/install-scripts/install.sh +++ b/.archlinux/install-scripts/install.sh @@ -2,11 +2,15 @@ set -e +echo -n "Enter the size (in GiB) to give the primary partition: " +read DISTSIZE + echo -n "Enter a hostname for this machine: " read HOSTNAME echo -n "Enter a username for the local account with sudo rights: " read USERNAME +env DISTSIZE="$DISTSIZE" ./001-preinstall env HOSTNAME="$HOSTNAME" ./003-configure env USERNAME="$USERNAME" ./004-postinstall