forked from extern/nix-config
archlinux: Ask for size of primary partition
This commit is contained in:
parent
14dbf3d51f
commit
9bdcba18c8
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user