rootfs-put is a tool for copying files and their dependencies to a specified filesystem (rootfs)
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2025-12-30 13:22:17 +03:00
.gitignore init 2025-12-30 13:22:17 +03:00
COPYING init 2025-12-30 13:22:17 +03:00
go.mod init 2025-12-30 13:22:17 +03:00
main.go init 2025-12-30 13:22:17 +03:00
put.go init 2025-12-30 13:22:17 +03:00
README.md init 2025-12-30 13:22:17 +03:00
resolve.go init 2025-12-30 13:22:17 +03:00
utils.go init 2025-12-30 13:22:17 +03:00

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