mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-06-24 19:51:30 +02:00
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
|
# enable boot for it. Then, create a primary swap partition with
|
||||||
# the remaining disk space.
|
# the remaining disk space.
|
||||||
parted /dev/sda mklabel msdos
|
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 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
|
# Format sda1 with ext4 and sda2 with swap
|
||||||
mkfs -t ext4 /dev/sda1
|
mkfs -t ext4 /dev/sda1
|
||||||
|
@ -2,11 +2,15 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
echo -n "Enter the size (in GiB) to give the primary partition: "
|
||||||
|
read DISTSIZE
|
||||||
|
|
||||||
echo -n "Enter a hostname for this machine: "
|
echo -n "Enter a hostname for this machine: "
|
||||||
read HOSTNAME
|
read HOSTNAME
|
||||||
|
|
||||||
echo -n "Enter a username for the local account with sudo rights: "
|
echo -n "Enter a username for the local account with sudo rights: "
|
||||||
read USERNAME
|
read USERNAME
|
||||||
|
|
||||||
|
env DISTSIZE="$DISTSIZE" ./001-preinstall
|
||||||
env HOSTNAME="$HOSTNAME" ./003-configure
|
env HOSTNAME="$HOSTNAME" ./003-configure
|
||||||
env USERNAME="$USERNAME" ./004-postinstall
|
env USERNAME="$USERNAME" ./004-postinstall
|
||||||
|
Loading…
x
Reference in New Issue
Block a user