diff --git a/.archlinux/install-scripts/003-configure b/.archlinux/install-scripts/003-configure index 52826c35..419b501e 100755 --- a/.archlinux/install-scripts/003-configure +++ b/.archlinux/install-scripts/003-configure @@ -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 diff --git a/.archlinux/install-scripts/004-postinstall b/.archlinux/install-scripts/004-postinstall index 55c1a4de..b60918a4 100755 --- a/.archlinux/install-scripts/004-postinstall +++ b/.archlinux/install-scripts/004-postinstall @@ -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 diff --git a/.archlinux/install-scripts/install.sh b/.archlinux/install-scripts/install.sh new file mode 100755 index 00000000..c21d1d63 --- /dev/null +++ b/.archlinux/install-scripts/install.sh @@ -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