mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-05-30 14:38:57 +02:00
archlinux: Ask for confirmation before installation
This should ensure that a user knows what they're doing before running the install scripts. Note that parted will also ask for a confirmation before overwriting existing data.
This commit is contained in:
parent
9bdcba18c8
commit
0c8cfe8cc2
@ -11,6 +11,21 @@ read HOSTNAME
|
|||||||
echo -n "Enter a username for the local account with sudo rights: "
|
echo -n "Enter a username for the local account with sudo rights: "
|
||||||
read USERNAME
|
read USERNAME
|
||||||
|
|
||||||
|
echo "-----------------------------------------------------"
|
||||||
|
echo "Arch Linux will be installed with the settings above."
|
||||||
|
echo "NOTE: You should not run this script if you do not"
|
||||||
|
echo " understand what it does. Bad things may happen."
|
||||||
|
echo -n "Type YES to continue, or Ctrl+C to abort. "
|
||||||
|
read CONFIRM
|
||||||
|
|
||||||
|
if [ "$CONFIRM" != "YES" ]; then
|
||||||
|
echo "YES was not given, exiting..."
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "====================================================="
|
||||||
|
echo "Running install scripts..."
|
||||||
|
|
||||||
env DISTSIZE="$DISTSIZE" ./001-preinstall
|
env DISTSIZE="$DISTSIZE" ./001-preinstall
|
||||||
env HOSTNAME="$HOSTNAME" ./003-configure
|
env HOSTNAME="$HOSTNAME" ./003-configure
|
||||||
env USERNAME="$USERNAME" ./004-postinstall
|
env USERNAME="$USERNAME" ./004-postinstall
|
||||||
|
Loading…
x
Reference in New Issue
Block a user