Closed rbran closed 1 year ago
add
expects the full path of the file in the image is preset as <FILE_PATH>
. So this works:
$ /target/release/add test.squashfs empty /empty
if the following usage can be improved, lmk.
tool to add files to squashfs filesystems
Usage: add [OPTIONS] <FILESYSTEM> <FILE> <FILE_PATH>
Arguments:
<FILESYSTEM> Squashfs input image
<FILE> Path of file to read, to write into squashfs
<FILE_PATH> Path of file inserted into squashfs
Options:
-o, --out <OUT> Squashfs output image [default: added.squashfs]
-h, --help Print help
-V, --version Print version
Reproduce:
Don't add the file
empty
, insteadunsquashfs -l added.squashfs
only outputs: