aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Moeller <freqlabs@FreeBSD.org>2021-06-23 13:42:43 +0000
committerRyan Moeller <freqlabs@FreeBSD.org>2021-06-23 21:24:53 +0000
commitb50db44f021c12283a2e140063a6b6fcc30295e5 (patch)
tree117c53c8a97fb1c7e7b0893921e075f4f8225453
parent50acaaef54b4d7811393eb8c05a398d7a1882418 (diff)
downloadsrc-b50db44f021c12283a2e140063a6b6fcc30295e5.tar.gz
src-b50db44f021c12283a2e140063a6b6fcc30295e5.zip
bsdinstall: Avoid double-mounting /dev
After 34766aa8cb514472c571f8b0e90e833833acef51 we are mounting and unmounting devfs elsewhere already. Reviewed by: nwhitehorn MFC after: 1 week Sponsored by: iXsystems, Inc. Differential Revision: https://reviews.freebsd.org/D30877
-rwxr-xr-xusr.sbin/bsdinstall/scripts/script2
1 files changed, 0 insertions, 2 deletions
diff --git a/usr.sbin/bsdinstall/scripts/script b/usr.sbin/bsdinstall/scripts/script
index cb42aed7706a..8d9dd5205132 100755
--- a/usr.sbin/bsdinstall/scripts/script
+++ b/usr.sbin/bsdinstall/scripts/script
@@ -162,9 +162,7 @@ fi
if [ -f $TMPDIR/bsdinstall-installscript-ab ]; then
cp $TMPDIR/bsdinstall-installscript-ab $BSDINSTALL_CHROOT/tmp/installscript
chmod a+x $BSDINSTALL_CHROOT/tmp/installscript
- mount -t devfs devfs "$BSDINSTALL_CHROOT/dev"
chroot $BSDINSTALL_CHROOT /tmp/installscript $@ 2>&1
- umount "$BSDINSTALL_CHROOT/dev"
rm $BSDINSTALL_CHROOT/tmp/installscript
fi