git: b50db44f021c - main - bsdinstall: Avoid double-mounting /dev
Ryan Moeller
freqlabs at FreeBSD.org
Wed Jun 23 21:25:47 UTC 2021
The branch main has been updated by freqlabs:
URL: https://cgit.FreeBSD.org/src/commit/?id=b50db44f021c12283a2e140063a6b6fcc30295e5
commit b50db44f021c12283a2e140063a6b6fcc30295e5
Author: Ryan Moeller <freqlabs at FreeBSD.org>
AuthorDate: 2021-06-23 13:42:43 +0000
Commit: Ryan Moeller <freqlabs at FreeBSD.org>
CommitDate: 2021-06-23 21:24:53 +0000
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
---
usr.sbin/bsdinstall/scripts/script | 2 --
1 file changed, 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
More information about the dev-commits-src-all
mailing list