[Bug 238727] Pkg requires /dev/null which is not available in nanobsd's normal pkg install
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Jun 20 20:22:28 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=238727
Bug ID: 238727
Summary: Pkg requires /dev/null which is not available in
nanobsd's normal pkg install
Product: Base System
Version: 12.0-STABLE
Hardware: Any
OS: Any
Status: New
Severity: Affects Many People
Priority: ---
Component: bin
Assignee: bugs at FreeBSD.org
Reporter: mike at sentex.net
When installing custom packages in nanobsd, pkg now requires /dev/null which is
not available by default. I made this simple patch to work around the issue.
Not sure if its the correct place to do it or not in
/usr/src/tools/tools/nanobsd/defaults.sh
# Early customize commands.
NANO_EARLY_CUSTOMIZE=""
@@ -776,6 +776,7 @@
fi
# Mount packages into chroot
+ mount -t devfs devfs ${NANO_WORLDDIR}/dev
mkdir -p ${NANO_WORLDDIR}/_.p
mount -t nullfs -o noatime -o ro ${NANO_PACKAGE_DIR}
${NANO_WORLDDIR}/_.p
@@ -802,7 +803,7 @@
)
CR0 "${PKGCMD} info"
-
+ umount ${NANO_WORLDDIR}/dev
trap - 1 2 15 EXIT
umount ${NANO_WORLDDIR}/_.p
rm -rf ${NANO_WORLDDIR}/_.p
Prior to that, the install would fail. More details and logs are in the email
thread at
https://lists.freebsd.org/pipermail/freebsd-embedded/2019-June/002718.html
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list