mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-01-17 03:19:05 +01:00
archlinux: Handle reads through new install.sh
This not only fixes the issue where set -x would cause the read line to be altered, but also separates user input from what the install scripts actually do.
This commit is contained in:
parent
f413aff320
commit
4b97b8df9d
@ -7,9 +7,6 @@
|
||||
|
||||
set -xe
|
||||
|
||||
echo -n "Enter a hostname for this machine: "
|
||||
read HOSTNAME
|
||||
|
||||
# Generate the fstab file (so the filesystem is mounted on boot)
|
||||
genfstab -U /mnt > /mnt/etc/fstab
|
||||
|
||||
|
@ -7,9 +7,6 @@
|
||||
|
||||
set -xe
|
||||
|
||||
echo -n "Enter a username for the local account with administrative rights: "
|
||||
read USERNAME
|
||||
|
||||
# Start and enable the DHCP client daemon service
|
||||
systemctl enable --now dhcpcd.service
|
||||
|
||||
|
12
.archlinux/install-scripts/install.sh
Executable file
12
.archlinux/install-scripts/install.sh
Executable file
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
echo -n "Enter a hostname for this machine: "
|
||||
read HOSTNAME
|
||||
|
||||
echo -n "Enter a username for the local account with sudo rights: "
|
||||
read USERNAME
|
||||
|
||||
env HOSTNAME="$HOSTNAME" ./003-configure
|
||||
env USERNAME="$USERNAME" ./004-postinstall
|
Loading…
Reference in New Issue
Block a user