summaryrefslogtreecommitdiff
path: root/export-image
diff options
context:
space:
mode:
authorSerge Schneider <serge@raspberrypi.com>2022-09-22 13:06:38 +0100
committerSerge Schneider <serge@raspberrypi.com>2022-09-22 13:06:38 +0100
commit6a61be92953ab6a281d36898e4fd8a02d448e043 (patch)
tree7771654e570f5d3ae22d97a0e8acec006bfa7956 /export-image
parent8a42abcd1dbd8c9c1fdfca4e0c3778255b2f9cc4 (diff)
Disable first run wizard if DISABLE_FIRST_BOOT_USER_RENAME is set
Diffstat (limited to 'export-image')
-rwxr-xr-xexport-image/01-user-rename/01-run.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/export-image/01-user-rename/01-run.sh b/export-image/01-user-rename/01-run.sh
index f3f900f..aa5dd94 100755
--- a/export-image/01-user-rename/01-run.sh
+++ b/export-image/01-user-rename/01-run.sh
@@ -4,4 +4,6 @@ if [[ "${DISABLE_FIRST_BOOT_USER_RENAME}" == "0" ]]; then
on_chroot <<- EOF
SUDO_USER="${FIRST_USER_NAME}" rename-user -f -s
EOF
+else
+ rm -f "${ROOTFS_DIR}/etc/xdg/autostart/piwiz.desktop"
fi