diff options
| author | Romain Bazile <romain@bazile.io> | 2022-06-17 16:45:08 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-17 15:45:08 +0100 |
| commit | 01b2432007766a6a1acc942f62d4ece7b25e560d (patch) | |
| tree | 05583b5bc9fc9ea928fe97fccfb351a3be74357f /export-image | |
| parent | 3385618efbd428bc14a13b7195d44978689d343a (diff) | |
Create a `DISABLE_FIRST_BOOT_USER_RENAME` flag to be set in config (#618)
Closes #614
Diffstat (limited to 'export-image')
| -rwxr-xr-x | export-image/01-user-rename/01-run.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/export-image/01-user-rename/01-run.sh b/export-image/01-user-rename/01-run.sh index 8a5617b..f3f900f 100755 --- a/export-image/01-user-rename/01-run.sh +++ b/export-image/01-user-rename/01-run.sh @@ -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 |
