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:
Donovan Glover 2018-12-02 00:57:34 -05:00
parent f413aff320
commit 4b97b8df9d
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
3 changed files with 12 additions and 6 deletions

View File

@ -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

View File

@ -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

View 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