Added USERNAME variable
This commit is contained in:
parent
bc20c1e729
commit
47ecef9867
@ -180,7 +180,7 @@ setup_chroot() {
|
|||||||
if [ $SWAP_SIZE -gt 0 ]; then
|
if [ $SWAP_SIZE -gt 0 ]; then
|
||||||
touch /swapfile
|
touch /swapfile
|
||||||
if [ $ROOT_FS = "btrfs" ]; then
|
if [ $ROOT_FS = "btrfs" ]; then
|
||||||
chattr +C /swapfile
|
chattr +C /swapfile # Needed?
|
||||||
fi
|
fi
|
||||||
dd if=/dev/zero of=/swapfile bs=1M count=${SWAP_SIZE}k status=progress
|
dd if=/dev/zero of=/swapfile bs=1M count=${SWAP_SIZE}k status=progress
|
||||||
chmod 0600 /swapfile
|
chmod 0600 /swapfile
|
||||||
|
8
setup
8
setup
@ -6,18 +6,20 @@
|
|||||||
set -xev
|
set -xev
|
||||||
|
|
||||||
# Configuration
|
# Configuration
|
||||||
|
ARCH=x86_64 # x86_64 or x86_64-musl
|
||||||
CPU=intel # amd or intel (blank for none)
|
CPU=intel # amd or intel (blank for none)
|
||||||
DISPLAY_SERVER=xorg # xorg or blank for none
|
DISPLAY_SERVER=xorg # xorg or blank for none
|
||||||
GFX_DRIVER=intel # amd, intel, or nvidia (blank for none)
|
GFX_DRIVER=intel # amd, intel, or nvidia (blank for none)
|
||||||
ARCH=x86_64 # x86_64 or x86_64-musl
|
USERNAME=acidvegas
|
||||||
|
|
||||||
|
|
||||||
GIT_URL="https://raw.githubusercontent.com/acidvegas/void/master"
|
GIT_URL="https://raw.githubusercontent.com/acidvegas/void/master"
|
||||||
|
|
||||||
setup_root() {
|
setup_root() {
|
||||||
setup_packages
|
setup_packages
|
||||||
|
|
||||||
useradd -m -s /bin/bash acidvegas && gpasswd -a acidvegas wheel && passwd acidvegas
|
useradd -m -s /bin/bash $USERNAME && gpasswd -a $USERNAME wheel && passwd $USERNAME
|
||||||
gpasswd -a acidvegas _incus && gpasswd -a acidvegas _incus-admin # Typically incus & incus-admin but void uses the underscore prefix
|
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
|
for item in 6x11 7x12 7x14; do
|
||||||
wget -O /usr/share/kbd/consolefonts/ohsnap${item}r.psfu $GIT_URL/font/ohsnap${item}r.psfu
|
wget -O /usr/share/kbd/consolefonts/ohsnap${item}r.psfu $GIT_URL/font/ohsnap${item}r.psfu
|
||||||
|
Loading…
Reference in New Issue
Block a user