1
0
forked from extern/nix-config

archlinux: Ask for size of primary partition

This commit is contained in:
Donovan Glover 2018-12-02 17:15:11 -05:00
parent 14dbf3d51f
commit 9bdcba18c8
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
2 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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