You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(rootfs-to-image): support ROOTFS_EXPORT_DIR and configurable ROOTFS_COMPRESSION
Split the rootfs pipeline so it can produce either (or both) of:
* a tarball — via ROOTFS_COMPRESSION=gzip (default, .tar.gz) / zstd
(.tar.zst); matches existing behaviour, with zstd now available for
faster creation and decompression on modern hardware.
* an exported tree — via ROOTFS_EXPORT_DIR=<abs path>, which rsyncs
the built rootfs to a host-side directory (e.g. an NFS export)
without an intermediate archive.
Set ROOTFS_COMPRESSION=none when only the exported tree is wanted;
this skips archive creation entirely. If both ROOTFS_COMPRESSION=none
and -z ROOTFS_EXPORT_DIR are set the run is aborted — otherwise the
rootfs stage would produce nothing.
This is infrastructure; no existing callers need to change. The
netboot extension (added in a following commit) consumes
ROOTFS_EXPORT_DIR to populate the NFS export tree.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments