git: 5870d6a1ef4e - main - bsdinstall: Use a login shell for final configuration.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 11 May 2025 21:05:36 UTC
The branch main has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=5870d6a1ef4ec5d6fc91d0f1635bca59e09a040d commit 5870d6a1ef4ec5d6fc91d0f1635bca59e09a040d Author: Dag-Erling Smørgrav <des@FreeBSD.org> AuthorDate: 2025-05-11 21:00:35 +0000 Commit: Dag-Erling Smørgrav <des@FreeBSD.org> CommitDate: 2025-05-11 21:04:55 +0000 bsdinstall: Use a login shell for final configuration. 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. PR: 286722 MFC after: 3 days Reviewed by: jrtc27, allanjude, emaste Differential Revision: https://reviews.freebsd.org/D50297 --- usr.sbin/bsdinstall/scripts/auto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/bsdinstall/scripts/auto b/usr.sbin/bsdinstall/scripts/auto index 339c9da433b2..75bff522a63f 100755 --- a/usr.sbin/bsdinstall/scripts/auto +++ b/usr.sbin/bsdinstall/scripts/auto @@ -409,7 +409,7 @@ if [ -z "$BSDINSTALL_SKIP_MANUAL" ]; then clear echo This shell is operating in a chroot in the new system. \ When finished making configuration changes, type \"exit\". - chroot "$BSDINSTALL_CHROOT" /bin/sh 2>&1 + chroot "$BSDINSTALL_CHROOT" /bin/sh -l 2>&1 fi fi