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