From 47ecef986796badaac8079e0b6cc4952f8bb65f5 Mon Sep 17 00:00:00 2001 From: acidvegas Date: Tue, 16 Jul 2024 18:12:48 -0400 Subject: [PATCH] Added USERNAME variable --- enterthevoid | 2 +- setup | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/enterthevoid b/enterthevoid index 6982cce..4543736 100755 --- a/enterthevoid +++ b/enterthevoid @@ -180,7 +180,7 @@ setup_chroot() { if [ $SWAP_SIZE -gt 0 ]; then touch /swapfile if [ $ROOT_FS = "btrfs" ]; then - chattr +C /swapfile + chattr +C /swapfile # Needed? fi dd if=/dev/zero of=/swapfile bs=1M count=${SWAP_SIZE}k status=progress chmod 0600 /swapfile diff --git a/setup b/setup index 87fb586..dc84f59 100755 --- a/setup +++ b/setup @@ -6,18 +6,20 @@ set -xev # Configuration -CPU=intel # amd or intel (blank for none) +ARCH=x86_64 # x86_64 or x86_64-musl +CPU=intel # amd or intel (blank for none) DISPLAY_SERVER=xorg # xorg or blank for none -GFX_DRIVER=intel # amd, intel, or nvidia (blank for none) -ARCH=x86_64 # x86_64 or x86_64-musl +GFX_DRIVER=intel # amd, intel, or nvidia (blank for none) +USERNAME=acidvegas + GIT_URL="https://raw.githubusercontent.com/acidvegas/void/master" setup_root() { setup_packages - useradd -m -s /bin/bash acidvegas && gpasswd -a acidvegas wheel && passwd acidvegas - gpasswd -a acidvegas _incus && gpasswd -a acidvegas _incus-admin # Typically incus & incus-admin but void uses the underscore prefix + useradd -m -s /bin/bash $USERNAME && gpasswd -a $USERNAME wheel && passwd $USERNAME + gpasswd -a $USERNAME _incus && gpasswd -a $USERNAME _incus-admin # Typically incus & incus-admin but void uses the underscore prefix for item in 6x11 7x12 7x14; do wget -O /usr/share/kbd/consolefonts/ohsnap${item}r.psfu $GIT_URL/font/ohsnap${item}r.psfu