The `rootpass` bsdinstall script escapes backslashes when reading parsing the output of bsddialog(1). They should be taken verbatim instead, as the resulting password set does not match the user's intended input. A fix is known and already prepared.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=1566386b90d34dea7f30a0e6b511e178bd0d50b8 commit 1566386b90d34dea7f30a0e6b511e178bd0d50b8 Author: Lars Engels <lme@FreeBSD.org> AuthorDate: 2026-04-25 14:41:24 +0000 Commit: Lars Engels <lme@FreeBSD.org> CommitDate: 2026-04-25 14:41:24 +0000 bsdinstall: fix root password prompt with backslashes Use "read -r" to set the root password in "bsdinstall rootpass" to prevent issues with passwords containing one or more backslash characters. PR: 294781 Discussed with: tuexen, crest Approved by: khorben MFC after: 3 days Event: Wiesbaden Hackathon 202604 usr.sbin/bsdinstall/scripts/rootpass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
*** This bug has been marked as a duplicate of bug 294603 ***
A commit in branch stable/15 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=44d33ead3d04b51881e7fba0cbed8f66f001280a commit 44d33ead3d04b51881e7fba0cbed8f66f001280a Author: Lars Engels <lme@FreeBSD.org> AuthorDate: 2026-04-25 14:41:24 +0000 Commit: Lars Engels <lme@FreeBSD.org> CommitDate: 2026-04-28 20:15:49 +0000 bsdinstall: fix root password prompt with backslashes Use "read -r" to set the root password in "bsdinstall rootpass" to prevent issues with passwords containing one or more backslash characters. PR: 294781 Discussed with: tuexen, crest Approved by: khorben MFC after: 3 days Event: Wiesbaden Hackathon 202604 (cherry picked from commit 1566386b90d34dea7f30a0e6b511e178bd0d50b8) usr.sbin/bsdinstall/scripts/rootpass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)