rootfs-put is a tool for copying files and their dependencies to a specified filesystem (rootfs)
- Go 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .gitignore | ||
| COPYING | ||
| go.mod | ||
| main.go | ||
| put.go | ||
| README.md | ||
| resolve.go | ||
| utils.go | ||
rootfs-put
rootfs-put is a tool for copying files and their dependencies to a specified filesystem (rootfs). It automatically resolves ELF file dependencies and copies all necessary libraries.
This tool is similar to initrd-put but also save package metadata to .rootfs.metadata.json.
Metadata
The metadata is saved to .rootfs.metadata.json in the rootfs. It contains the following information:
{
"packages": {
"bash": "5.2.15-alt1",
"bash5": "5.2.37-alt1",
...
}
}
Usage
export ROOTFS_PUT_ROOT=/path/to/rootfs # default /rootfs
export ROOTFS_PUT_DEBUG=true # for debug
rootfs-put \
/usr/bin/bash \
/lib64/iptables
License
GPL-3.0-or-later