]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Mount and unmount devfs around calls to add packages.
authorWarner Losh <imp@FreeBSD.org>
Fri, 21 Jun 2019 03:49:36 +0000 (03:49 +0000)
committerWarner Losh <imp@FreeBSD.org>
Thu, 8 Jul 2021 05:51:03 +0000 (23:51 -0600)
commitc978000da5c6a909e16c0996a93d91068cafb03e
tree31ce41e19910f0d1fbcd4647f1a90721a442e69c
parent427654eb6a1435acb15c272731fd9518b11961d7
Mount and unmount devfs around calls to add packages.

pkg now uses /dev/null for some of its operations. NanoBSD's packaging
stuff didn't mount that for the chroot it ran in, so any config that
added packages would see the error:
pkg: Cannot open /dev/null:No such file or directory
when trying to actually add those packages. It's easy enough for
nanobsd to mount /dev and it won't hurt anything that was already
working and may help things that weren't (like this). I moved the
mount/unmount pair to be in the right push/pop order from the
submitted patch.

PR: 238727
Submitted by: mike tancsa
Tested by: Karl Denninger

(cherry picked from commit 804b78634d543667a37ac459e692fe42c9dd30e8)
tools/tools/nanobsd/defaults.sh