Customize the live boot

Weitian LI liweitianux at live.com
Thu Feb 13 20:48:24 PST 2025


Hi,

On 2/13/25 3:20 PM, Sayed Mohammad Badiezadegan wrote:
> Hi everybody,
> 
> Regarding my last email about customizing the DragonflyBSD including 
> only GnuFortran (when booting live), I installed DragonflyBSD on a 
> VirtualBOX and then I installed GCC13.
> 
> Now, I run:
> 
> *# nano /usr/src/nrelease/MakeFile*
> 
> But, I can not find a line containing
> 
> *  CHROOT_PKG_ADD +=*

I don't know where you found this, but it's not used by the current 
nrelease framework.

> So, where should I insert these lines:
> 
> *CHROOT_PKG_ADD += lang/gcc12 *
> *   CHROOT_PKG_ADD += math/lapack math/blas math/openblas *
> 
> Any advice is welcome.
> Thank you,
> 

The nrelease framework is used to build our release and snapshot images 
(ISO and IMG).

To build a custom image with extra packages, just do:

$ cd /usr/src/nrelease
$ make release binpkgs \
       DPORTS_EXTRA_PACKAGES="lang/gcc12 math/lapack math/blas 
math/openblas"

When it finishes, the ISO and IMG images are at /usr/obj/release.

You can find the available nrelease targets and options with:

$ make -f /usr/src/nrelease/Makefile

and it current shows:

------------------------------------------
Targets:
   release     - full build from scratch
   quick       - attempt to do an incremental rebuild
   realquick   - attempt to restart after world & kernel
   restartpkgs - attempt to restart at the pkg building stage

Optional targets:
   nopkgs      - do not install any packages
   binpkgs     - use binary packages with pkg(8)
   gui         - do a GUI release

Variables:
   DPORTS_EXTRA_PACKAGES: add additional packages
   GITURL_SRC: override the Git URL to source repository
   GITURL_DPORTS: override the Git URL to dports repository
   IMGSIZE: override the size of .img (in 512-byte sectors)
   IMGSIZE_MB: override the size of .img (in units of MB)
   NREL_MAKE_JOBS: override the default value (sysctl hw.ncpu)
   PKG_<port>: specify the package name for port <port>
   WITHOUT_SRCS: do not package source code if set
------------------------------------------

Hope it helps you.

Cheers,
-- 
Weitian / Aaron


More information about the Users mailing list