Repository navigation
Conversation
DietPi runs its first run setup from the first interactive login. With the engine's autologin on tty1 it started by itself on the web console, and anyone coming in over pct console, SSH or the second console only saw "first run setup is currently running on another screen". Since DietPi v10.9 the login prompt shows the default credentials, so remove both getty overrides that customize writes instead of moving one of them to container-getty@1. DietPi's installer skips the banner on its master branch (temporary guard since 17 Nov 2026), so write it here with dietpi-banner issue.
Try this branchThe engine and the scripts resolve independently, so this runs the changed export COMMUNITY_SCRIPTS_URL=https://raw.githubusercontent.com/mews-se/ProxmoxVE/fix/dietpi-no-autologin
bash -c "$(curl -fsSL "$COMMUNITY_SCRIPTS_URL/ct/dietpi.sh")"Both lines are needed. Without The same command works on an Incus host: the engine detects the platform and Useful while testing
export COMMUNITY_SCRIPTS_URL=https://raw.githubusercontent.com/mews-se/ProxmoxVE/fix/dietpi-no-autologin
dev_mode=net,keep bash -c "$(curl -fsSL "$COMMUNITY_SCRIPTS_URL/ct/dietpi.sh")"Against a core branch as wellAdd |
Proxmox script test@mews-se ✅ 2/2 passed at
ARM64 (information only, not counted): 1/1 passed. 📊 Resources
📄 ct/dietpi.sh (pve) — install log (13 lines)🔄 ct/dietpi.sh (pve) — update log (14 lines)📄 ct/dietpi.sh (incus) — install log (14 lines)🔄 ct/dietpi.sh (incus) — update log (2 lines)📄 ct/dietpi.sh (arm64) — install log (14 lines)🔄 ct/dietpi.sh (arm64) — update log (2 lines)Full logs: workflow run (artifacts |
✍️ Description
DietPi runs its first run setup from the first interactive login. With the engine's autologin on tty1 that login happens by itself as soon as the container boots, so the setup starts unattended on the web console, takes its lock, and whoever comes in over
pct console, SSH or the second console only gets "first run setup is currently running on another screen". The tty1-only workaround from community-scripts/DevScripts#2490 kept it to one console, but the setup still started with nobody there.Since DietPi v10.9 the login prompt shows the default credentials (
root/dietpi, or the custom dietpi.txt entry) until the first run setup has finished, via/etc/issue.d/dietpi-banner.issue(MichaIng/DietPi#8507). The autologin is no longer needed to find the way in, and MichaIng suggested dropping it for the container (MichaIng/DietPi#8233) so it behaves like the other DietPi images: a login prompt, and the first run setup starts on the console the user actually logs in on.Changes in
install/dietpi-install.sh:customize, remove both getty overrides it writes in the no-password case (container-getty@andconsole-getty) instead of moving one of them tocontainer-getty@1. Everything else fromcustomizestays (theupdateentrypoint, the SSH key,.hushlogin). With a root password chosen in the advanced settings nothing changes,customizenever wrote the overrides then.dietpi-banner issue. DietPi's installer skips that step on its master branch (a temporary guard from 17 Nov 2026, MichaIng/DietPi@3f2f83a0, still in place after the v10.9 release), so a container built from master would otherwise show a bare login prompt until the first run setup has finished. The call is idempotent and stays harmless once the guard is lifted.ct/dietpi.shis untouched, its closing line still holds. #18949 changes the restart lines of that file, no overlap.Tested on a fresh build from this branch: no getty drop-ins left,
container-getty@1,@2andconsole-gettyon the stock agetty line, no session after boot, the banner with the credentials abovelogin:on tty1, root/dietpi accepted, the first run setup starts once on the console that logs in, and a login on tty2 meanwhile gets DietPi's "running on another screen" message.🔗 Related Issue
MichaIng/DietPi#8233 (MichaIng's suggestion after the merge), MichaIng/DietPi#8507 (the pre-login banner). Follow-up to community-scripts/DevScripts#2490.
✅ Prerequisites (x in brackets)
Tested on: PVE 9.2.28 / Debian 13 template / fresh install from this branch (two builds), console login on tty1 and tty2
🛠️ Type of Change (X in brackets)
README,AppName.md,CONTRIBUTING.md, or other docs.💥 Breaking Change Advisory (only if you checked "Breaking change")
🤖 AI Assistance (X in brackets)
AGENTS.mdand.github/agents/pve-script-creator.agent.mdas guidance, and the output has been reviewed and corrected to match those guidelines. Claude Fable 5.1 (Anthropic), used to trace the autologin and the banner guard and write the change. Tested on a real Proxmox host and reviewed by me.