archlinux: Add single install script support

This commit makes it so that downloading the entire repository to run
the install scripts is no longer necessary.

It assumes that you have an active internet connection, which should be
a given since you need an internet connection to run pacstrap anyway.
This commit is contained in:
Donovan Glover 2018-12-06 17:35:04 -05:00
parent 1e7cb458ea
commit f320b0c294
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -7,6 +7,14 @@ set -e
# Change the working directory to this one
cd "$(dirname "$0")"
# Download the install scripts if they don't exist yet
URL="https://raw.githubusercontent.com/GloverDonovan/.files/master/.archlinux/install-scripts"
[ -f 001-preinstall ] || wget "$URL/001-preinstall"
[ -f 002-install ] || wget "$URL/002-install"
[ -f 003-configure ] || wget "$URL/003-configure"
[ -f 004-postinstall ] || wget "$URL/004-postinstall"
chmod 755 001-preinstall 002-install 003-configure 004-postinstall
# Prompt for the required information
echo -n "Enter the size (in GiB) to give the primary partition: "