summaryrefslogtreecommitdiff
path: root/export-image/01-user-rename/01-run.sh
blob: aa5dd941024a6a01f0008bc9b1eef604372ba9f7 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/bash -e

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