summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2012-03-05 02:40:18 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2012-03-05 02:40:18 +0000
commit5bdddf55289de859b8c579d744300982b6aa96d4 (patch)
tree85d5752ed35b5826465155a47d1aa1e7b4e335ee
parenta7377c574a4671c732a132ea244a1f596611a7ad (diff)
downloadFreeBSD-src-5bdddf55289de859b8c579d744300982b6aa96d4.zip
FreeBSD-src-5bdddf55289de859b8c579d744300982b6aa96d4.tar.gz
Make the chroot shell more functional by providing devfs.
Reported by: Robert Simmons MFC after: 4 days
-rwxr-xr-xusr.sbin/bsdinstall/scripts/auto1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/bsdinstall/scripts/auto b/usr.sbin/bsdinstall/scripts/auto
index afb7799..f6d1d37 100755
--- a/usr.sbin/bsdinstall/scripts/auto
+++ b/usr.sbin/bsdinstall/scripts/auto
@@ -216,6 +216,7 @@ dialog --backtitle "FreeBSD Installer" --title "Manual Configuration" \
--yesno "The installation is now finished. Before exiting the installer, would you like to open a shell in the new system to make any final manual modifications?" 0 0
if [ $? -eq 0 ]; then
clear
+ mount -t devfs devfs "$BSDINSTALL_CHROOT/dev"
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
OpenPOWER on IntegriCloud