RUN-MKSQUASHFS(1)

NAME
run-mksquashfs - wrap mksquashfs, capture its exit status, and record image size metadata

SYNOPSIS
run-mksquashfs status-file [mksquashfs-options...]

DESCRIPTION
run-mksquashfs is a small helper used by the remaster workflow when mksquashfs needs to run inside a terminal or GUI wrapper. It executes mksquashfs with the supplied arguments, writes the exit status to the file named by the first positional argument, and records the uncompressed filesystem size in the live configuration metadata. The helper also captures the command output in a temporary file so it can extract the reported uncompressed filesystem size and write it to /live/config/linuxfs.info via the configured squashfs directory.

ARGUMENTS

status-file
    Path to a file where the script will store the numeric exit code from mksquashfs.

mksquashfs-options
    All remaining arguments are passed directly to mksquashfs without interpretation.

BEHAVIOR
The script tees the mksquashfs output to a temporary file under /tmp, writes the command return code to the requested status file, and removes the temporary capture file when done.

SEE ALSO
mksquashfs(1), live-remaster(1)

AUTHOR
mx-remaster maintainers