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
This commit is contained in:
Dag-Erling Smørgrav 2025-05-11 23:00:35 +02:00
parent 62f55b34ec
commit 5870d6a1ef

View file

@ -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