Page MenuHomeFreeBSD

bsdinstall: Use a login shell for final configuration.
ClosedPublic

Authored by des on May 11 2025, 2:50 PM.
Tags
None
Referenced Files
F134552643: D50297.id.diff
Mon, Nov 3, 3:24 AM
Unknown Object (File)
Wed, Oct 29, 12:02 PM
Unknown Object (File)
Wed, Oct 29, 10:44 AM
Unknown Object (File)
Wed, Oct 29, 10:37 AM
Unknown Object (File)
Wed, Oct 29, 10:36 AM
Unknown Object (File)
Tue, Oct 28, 10:36 PM
Unknown Object (File)
Tue, Oct 28, 2:40 PM
Unknown Object (File)
Mon, Oct 27, 5:59 PM

Details

Summary

If the user accepts our offer of a shell to perform final configuration
tasks before rebooting, start a login shell. This ensures it will have
the correct PATH and be able to install packages without issues.

MFC after: 3 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 64082
Build 60966: arc lint + arc unit

Event Timeline

des requested review of this revision.May 11 2025, 2:50 PM
This revision is now accepted and ready to land.May 11 2025, 3:19 PM
This revision now requires changes to proceed.May 11 2025, 3:21 PM
usr.sbin/bsdinstall/scripts/auto
412

would /usr/bin/login -f root not be better to accomplish this?

usr.sbin/bsdinstall/scripts/auto
412

I guess, but this seemed less risky. Also, login has additional side effects, like updating utmpx.

I didn't realize we had added -l to /bin/sh.

LGTM

This revision is now accepted and ready to land.May 11 2025, 3:55 PM
des marked an inline comment as done.May 11 2025, 8:59 PM