This repository provides two powerful Rust-based tools for managing .stone packages, the native package format for AerynOS:
The .stone format is a structured binary package format designed for modern, rolling-release systems. It features:
zstd compression for optimal storagexxhash/usr with atomic updates via renameat2/.mossstone.yaml, KDL coming soon ❤️)soname()) and dependency useNote: Using latest Rust via rustup is recommended.
.stonesync support# clone the AerynOS os-tools repo somewhere reasonable
mkdir -pv ~/repos/aeryn-os/
cd ~/repos/aeryn-os/
git clone https://github.com/aerynos/os-tools.git
cd tools/
# Install a few prerequisites (this how you'd do it on AerynOS)
sudo moss it binutils glibc-devel linux-headers clang bsdtar-static cpio
# remember to add ~/.cargo/bin to your $PATH if this is how you installed rustfmt
cargo install rustfmt
# from inside the moss clone, this will build boulder and moss
# and install them to ${HOME}/.local/bin/ by default
just get-started
# boulder and moss rely on so-called subuid and subgid support.
# IFF you do not already have this set up for your ${USER} in /etc/subuid and /etc/subuid
# you might want to do something similar to this:
sudo touch /etc/sub{uid,gid}
sudo usermod --add-subuids 1000000-1065535 --add-subgids 1000000-1065535 root
sudo usermod --add-subuids 1065536-1131071 --add-subgids 1065536-1131071 ${USER}
NB: If you want to build .stones with boulder on your non-aeryn host system, you will need to specify the
location of the boulder data files (which live in ${HOME}/.local/share/boulder if you used just get-started like above):
alias boulder="${HOME}/.local/bin/boulder --data-dir=${HOME}/.local/share/boulder/ --config-dir=${HOME}/.config/boulder/ --moss-root=${HOME}/.cache/boulder/"
See aerynos.dev.
NB: Remember to use the -D sosroot/ argument to specify a root directory, otherwise moss will happily
eat your current operating system.
just get-started
# create the sosroot/ directory
mkdir -pv sosroot/
# Add the volatile repo
moss -D sosroot/ repo add volatile https://packages.serpentos.com/volatile/x86_64/stone.index
# List packages
moss -D sosroot/ list available
# Install something
moss -D sosroot/ install systemd bash libx11-32bit
If you want to create systemd-nspawn roots or bootable VMs, please check out the img-tests repository.
Please ensure all tests are running locally without issue:
$ just test
# Prior to committing a change:
$ just test # includes the just lint target
# Prior to pushing anything, apply clippy fixes:
$ just fix
Then create a Pull Request with your changes.
moss-rs is available under the terms of the MPL-2.0
$ claude mcp add os-tools \
-- python -m otcore.mcp_server <graph>