Create a DISABLE_FIRST_BOOT_USER_RENAME flag to be set in config (#618)

Closes #614
This commit is contained in:
Romain Bazile
2022-06-17 16:45:08 +02:00
committed by GitHub
parent 3385618efb
commit 01b2432007
3 changed files with 28 additions and 5 deletions

View File

@@ -1,5 +1,7 @@
#!/bin/bash -e
on_chroot << EOF
SUDO_USER="${FIRST_USER_NAME}" rename-user -f -s
EOF
if [[ "${DISABLE_FIRST_BOOT_USER_RENAME}" == "0" ]]; then
on_chroot <<- EOF
SUDO_USER="${FIRST_USER_NAME}" rename-user -f -s
EOF
fi