archlinux: Finalize install.sh

This should work, although I haven't tested it yet.

In the future it may be easier to simply download the other install
scripts from this install script. That way we solve the problem of
having to unzip this entire repository in the installation image.
This commit is contained in:
Donovan Glover 2018-12-02 18:46:52 -05:00
parent 1d67bf6d74
commit 54d2824113
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -1,7 +1,14 @@
#!/bin/sh
# Simple Arch Linux install scripts, tailored to my use case.
# End the script on any errors
set -e
# Change the working directory to this one
cd "$(dirname "$0")"
# Prompt for the required information
echo -n "Enter the size (in GiB) to give the primary partition: "
read DISTSIZE
@ -26,7 +33,9 @@ fi
echo "====================================================="
echo "Running install scripts..."
# Run the install scripts
env DISTSIZE="$DISTSIZE" ./001-preinstall
./002-install
env HOSTNAME="$HOSTNAME" ./003-configure
env USERNAME="$USERNAME" ./004-postinstall
@ -35,3 +44,6 @@ arch-chroot /mnt passwd
echo "Enter a password for $USERNAME..."
arch-chroot /mnt passwd "$USERNAME"
echo "====================================================="
echo "Done. Now reboot into Arch Linux!"