Date: Thu, 20 Jun 2019 20:22:26 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 238727] Pkg requires /dev/null which is not available in nanobsd's normal pkg install Message-ID: <bug-238727-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | raw e-mail
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@FreeBSD.org Reporter: mike@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.help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-238727-227>
