MKROOTFS(8) System Manager's Manual MKROOTFS(8)

mkrootfsmake root filesystem for chroot installation

mkrootfs [-BCTVhv] [-c conffile] [-l logfile] [-r rootfsdir] [-t tarball] [-x pkgmk_conffile] [-y pkgman_conffile] [pkgname ...]

The mkrootfs utility builds customized root filesystem for chroot installation. By default, mkrootfs builds and installs all packages from “core” pkgsrc collection, unless pkgname(s) specified.

The options are as follows:

Prepare rootfs directory.
Check rootfs directory for missing libraries.
Compress rootfs directory (prepare tarball).
conffile, --config=conffile
Specify an alternate configuration file instead of the default /etc/mkrootfs/config.
logfile, --log=logfile
Specify an alternate log file for pkgman(1) invocations instead of the default “/tmp/rootfs-⟨DATE⟩-⟨ARCH⟩.log”.

Here and below ⟨DATE⟩ is the output of “date +%F”, and ⟨ARCH⟩ is the output of “uname -m” commands.

rootfsdir, --rootfs=rootfsdir
Specify an alternate rootfs directory instead of the default “/tmp/rootfs-⟨DATE⟩-⟨ARCH⟩/”.
tarball, --tar=tarball
Specify an alternate compressed rootfs tarball instead of the default “/tmp/rootfs-⟨DATE⟩-⟨ARCH⟩.tar.xz”.
pkgmk_conffile, --pkgmk-config=pkgmk_conffile
Specify an alternate configuration file for pkgmk(8) invocations instead of the default /etc/pkgmk.conf.
pkgman_conffile, --pkgman-config=pkgman_conffile
Specify an alternate configuration file for pkgman(1) invocations instead of the default /etc/pkgman.conf.
, --verbose
Verbose output.
, --version
Print version and exit.
, --help
Print help and exit.

/etc/mkrootfs/config
Configuration file for mkrootfs. See mkrootfs.config(5) for more information.
/etc/pkgmk.conf
Configuration file for invoked pkgmk(8).
/etc/pkgman.conf
Configuration file for invoked pkgman(1).

0
Success.
1
Generic error code.
2
Building rootfs directory failed.
3
Checking rootfs directory for missing libraries failed.
4
Compressing rootfs directory (preparing the tarball) failed.

mkrootfs.config(5), mkrootfs.release(7)

September 4, 2023 Zeppe-Lin