Bug 287394 - nanoBSD: image build with WITHOUT_PKGBOOTSTRAP cannot be setup with any packages
Summary: nanoBSD: image build with WITHOUT_PKGBOOTSTRAP cannot be setup with any packages
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: 14.3-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-09 12:06 UTC by embhd
Modified: 2025-06-09 12:19 UTC (History)
0 users

See Also:


Attachments
error log due to missing /usr/sbin/pkg (1.76 KB, text/plain)
2025-06-09 12:06 UTC, embhd
no flags Details
rely on the build system's pkg(8) (1.57 KB, patch)
2025-06-09 12:19 UTC, embhd
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description embhd 2025-06-09 12:06:03 UTC
Created attachment 261113 [details]
error log due to missing /usr/sbin/pkg

Related to https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269884 - an image build with the option WITHOUT_PKGBOOTSTRAP fails to have any packages installed, since the necessary /usr/sbin/pkg is not there.
Comment 1 embhd 2025-06-09 12:19:40 UTC
Created attachment 261115 [details]
rely on the build system's pkg(8)

The proposed patch uses the build system's /usr/local/sbin/pkg to chroot into ${NANO_WORLDDIR} and do all the installations, instead of the build system bootstrapping it with ${NANO_WORLDDIR}/usr/sbin/pkg - which is not there, if the image has been build with WITHOUT_PKGBOOTSTRAP.