From 62a532bf2115e37356e378283dbca0fb6378b2a9 Mon Sep 17 00:00:00 2001 From: BodgeMaster <> Date: Wed, 14 Jun 2023 10:16:11 +0200 Subject: [PATCH] install stage 1: fix setting hostname --- install-stage1.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install-stage1.sh b/install-stage1.sh index dfce47b..276c0c6 100644 --- a/install-stage1.sh +++ b/install-stage1.sh @@ -154,7 +154,7 @@ xmirror TARGET_MIRROR="$(sed 's/repository=//;s|/musl$||' /etc/xbps.d/00-repository-main.conf)" #TODO: select installation type -TARGET_TYPE="x86_64-musl" +TARGET_TYPE="x86_64" if grep "musl" <<< "$TARGET_TYPE"; then TARGET_MIRROR="$TARGET_MIRROR/musl" @@ -252,7 +252,7 @@ while [ -z "$TARGET_HOSTNAME" ]; do TARGET_HOSTNAME="void-usb" else if grep -e "^[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]$" -e "^[a-zA-Z0-9]*$" <<< "$TARGET_HOSTNAME" > /dev/null 2>&1; then - echo "$TARGET_HOSTNAME" > /mnt/target/etc/hostname + true else echo "Allowed characters are a-zA-Z0-9 (and - in the middle)." unset TARGET_HOSTNAME @@ -260,7 +260,7 @@ while [ -z "$TARGET_HOSTNAME" ]; do fi done - +echo "$TARGET_HOSTNAME" > /mnt/target/etc/hostname