From 54d282411345d041e68b223785df36b88b221e7f Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Sun, 2 Dec 2018 18:46:52 -0500 Subject: [PATCH] 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. --- .archlinux/install-scripts/install.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.archlinux/install-scripts/install.sh b/.archlinux/install-scripts/install.sh index 138ce7da..eaa4ec4d 100755 --- a/.archlinux/install-scripts/install.sh +++ b/.archlinux/install-scripts/install.sh @@ -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!"