Skip to content

Add tryUntil() check to ensure user exists before modification - #2094

Merged
mstormi merged 1 commit into
openhab:mainfrom
Markkuuss:userconf-delay-fix
Nov 27, 2025
Merged

Add tryUntil() check to ensure user exists before modification#2094
mstormi merged 1 commit into
openhab:mainfrom
Markkuuss:userconf-delay-fix

Conversation

@Markkuuss

Copy link
Copy Markdown
Contributor

On first boot, the user created via /boot/userconf.txt may not yet be available when openHABian applies username/password modifications.

This adds a tryUntil() loop before the username/passwd handling to ensure the user actually exists before modifications are applied.

Prevents skipped username changes and chpasswd errors.

Signed-off-by: Markus Schraufstetter <10926460+Markkuuss@users.noreply.github.com>

@mstormi mstormi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks

@mstormi
mstormi merged commit 91552c7 into openhab:main Nov 27, 2025
7 checks passed
@Markkuuss
Markkuuss deleted the userconf-delay-fix branch January 7, 2026 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants