corefs
Build a Core Linux root filesystem.
corefs install <profile> <rootfs> [--mirror <url>]
corefs --help
corefs --version
Commands
| Command | Description |
|---|---|
install | Fetch, verify and extract the packages <profile> lists into <rootfs>. Nothing is extracted until all of them verify. |
Arguments
| Argument | Description |
|---|---|
<profile> | Package list in the repository, e.g. base |
<rootfs> | Target directory, created if missing |
Options
| Option | Description |
|---|---|
--mirror <url>, --mirror=<url> | Repository to install from, instead of COREFS_REPO |
-h, --help | Show help |
-V, --version | Show the version |
Environment
| Variable | Description |
|---|---|
COREFS_REPO | Repository to use without --mirror. Default: http://localhost:8000/core |
COREFS_CACHE | Keep downloads in this directory instead of inside <rootfs>, and don't delete them afterwards |
NO_COLOR | Disable colors |
A repository URL can be http://, https:// or file://.
Examples
corefs install base ./rootfs
corefs install base /mnt --mirror https://mirror.example.com/core
corefs install base ./rootfs --mirror "file://$PWD/repo/core"
warning
Run corefs as root, or the installed files are owned by you.