Page MenuHomeFreeBSD

bsdinstall: redirect stdin from /dev/null
Needs ReviewPublic

Authored by emaste on Apr 29 2025, 1:03 AM.
Referenced Files
F153471609: D50061.diff
Tue, Apr 21, 8:49 AM
Unknown Object (File)
Sat, Apr 18, 11:30 PM
Unknown Object (File)
Sat, Apr 18, 4:24 PM
Unknown Object (File)
Sat, Apr 18, 7:10 AM
Unknown Object (File)
Fri, Apr 17, 11:14 AM
Unknown Object (File)
Tue, Mar 31, 9:05 PM
Unknown Object (File)
Mar 21 2026, 11:24 AM
Unknown Object (File)
Mar 9 2026, 4:25 PM
Subscribers

Details

Reviewers
ifreund_freebsdfoundation.org
Group Reviewers
pkgbase
Summary
In earlier pkgbase experiments pkg was not installed and the
/usr/sbin/pkg bootstrap tool stalled on [ttyin] waiting for a Y/n
response about installing pkg.

Although I do not believe this case will occur now, we do expect pkg to
be used in non-interactive mode so this will avoid future similar cases.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

I don't think this is necessary, pkg(7) reads the ASSUME_ALWAYS_YES environment variable and should never ask for user confirmation if it is set.

If that is not happening for some reason, I believe the bug should be fixed in pkg(7) rather than worked around here.