]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Mount and unmount devfs around calls to add packages.
authorimp <imp@FreeBSD.org>
Fri, 21 Jun 2019 03:49:36 +0000 (03:49 +0000)
committerimp <imp@FreeBSD.org>
Fri, 21 Jun 2019 03:49:36 +0000 (03:49 +0000)
commit4292f60c907d645ef7f0922990877102fecae35e
tree8f59adc111dac4a34b009b3c0f7341583a46a4a1
parent76d6e9061c6da2c27cd00eba3bd089564cb309ba
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
tools/tools/nanobsd/defaults.sh