mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-12-15 11:21:42 +01:00
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:
parent
1e7cb458ea
commit
f320b0c294
@ -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: "
|
||||
|
Loading…
Reference in New Issue
Block a user