mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-05-28 13:47:53 +02:00
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:
parent
1d67bf6d74
commit
54d2824113
@ -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!"
|
||||
|
Loading…
x
Reference in New Issue
Block a user