The tinkerer's
Linux distribution_
An independent Linux distribution built for modularity, simplicity and readable code. There is no base package: you assemble your own system from the parts you choose.
# rootfs.kg schema_version: "1" libc: "glibc" compiler: "gcc" coreutils: "busybox" tls_library: "openssl" init: "jumpstart" $ sudo krep rootfs --configPath="$PWD/rootfs.kg"
Every core tool, written in-house.
A package manager, an init system, a build tool and a DSL, designed to work together, and all written in Nim.
kpkg
package managerInstall prebuilt packages or build them from source. kpkg resolves dependencies and manages the software on your Kreato Linux system.
Jumpstart
init systemMost modular init system to ever exist. Units are Kongue decfiles: more flexible than INI units and safer than shell scripts. Utilizes cores to allow any service to work under it.
krep
repo & image toolMaintain package recipes, assemble a root filesystem, or turn a prepared system into a bootable live ISO.
Kongue
domain-specific languageOne small language behind runfiles, decfiles and more. It is inspired from YAML, sh and HCL. Always improving with more support.
# variables at the top, functions below name: "Kreato Linux" main { print "Hello, $name!" }
What if you could have all the init systems?
Jumpstart is the backplane. Cores are cartridges: drop one into the bus and it handles the operations it claims. Six cartridges, any mix.
core rack
drag or tapDrag a cartridge into the bus, or press Enter on a rack row to insert it. Press Enter on a loaded core to eject it.
Drag a cartridge into the bus. Click a loaded core to eject it.
One manifest, any implementation.
Jumpstart never hardcodes how a unit runs: every operation is routed to a core, and the built-in serviceHandler already covers 33 of them across units, services, mounts, timers and targets.
init.kg
core manifestA core is a directory: an init.kg manifest plus optional bin/, lib/ and share/. It claims subsystems, declares an init function, and names a backend for every operation in them. Drop it in a trusted root and enable it.
Manifests are read through a verified descriptor, and jumpctl cores show prints every operation and its backend before anything runs.
Cores load only from trusted roots: root-owned for the system, your own for user mode. If init.kg changes after loading, the daemon reports the core as stale until it is reloaded.
Units can address a core directly with systemd/nginx, so two cores can provide the same unit name without a clash.
serviceHandler loaded
systemd loaded
# /usr/lib/jumpstart/cores/systemd/init.kg manifest_version: 1 name: "systemd" core_version: "0.1.0" version: "255" jumpstart: ">=2.0.0, <3.0.0" modes: - "system" subsystems: - "unit" - "service" activation: "core" supported_ops: - name: "service.start" backend: "exec" options: executable: "bin/systemd-core" mode: "persistent" timeout: "30s" # ...and the rest of unit.* and service.* init { # runs once before the first request }
exec
adapter processShip an adapter executable that answers over JSON lines on descriptors 3 and 4. A oneshot adapter starts per call; a persistent one stays warm between requests. Timeouts and a closed environment apply either way; read-only one-shot calls are sandboxed.
mode: "persistent"
custom
Kongue functionBind the operation to a function in init.kg. Jumpstart runs it through the isolated Kongue runner, so a core can stay one file, with init and shutdown hooks for setup and teardown.
functions:
- handler: "status"
delegate
another corePoint an operation at a core that already implements its subsystem, so your core only has to implement the calls it changes. serviceHandler is the usual target.
core: "serviceHandler"
Build from source. Roll back package changes.
Install a prebuilt package or build it from a Kongue run3 recipe. kpkg tracks package changes so you can inspect and undo them.
One package manager, two ways to install
Use a prebuilt package for speed, or build from source when you want to customize the build. Both paths resolve dependencies and record what changed.
Install or build
# install a prebuilt package $ sudo kpkg install neofetch # or build the repository recipe from source $ sudo kpkg build neofetch
install uses a prebuilt .kpkg archive. build builds from the recipe and installs the result, reusing cached builds when available. The --root=/mnt flag installs into another system root.
A run3 recipe
# run3: Kongue syntax, shortened for clarity name: "example" version: "1.0" release: "1" build_depends: - "meson" build { macro build --meson } package { macro package --meson }
A run3 file is a readable Kongue recipe: header fields describe the package, and blocks define build, test and packaging steps. The macros wrap Meson, CMake, Ninja, Make and Autotools.
Undo or rollback
# pick a boundary ID from the list $ kpkg history list $ kpkg history info ID $ sudo kpkg history undo ID # or keep ID and revert only newer transactions $ sudo kpkg history rollback ID
undo reverts a transaction and everything after it. rollback keeps that transaction and reverts newer ones.
Mix source and binaries
Use kpkg build --binCache to prefer matching prebuilt dependencies while building the package you asked for.
Readable recipes
run3A run3 file uses Kongue rather than shell. Metadata, sources and dependencies live in the header; lifecycle steps live in blocks. Per-architecture source groups let one recipe describe several targets.
REPL queries
inspectUse kpkg repl -a 'get config.Repositories' for one answer, or start kpkg repl for tab completion and run3 expressions. Its set command can persist changes.
From package recipes to bootable images.
Check for new releases without editing package recipes, assemble a Linux system from a Kongue profile, or turn a prepared root filesystem into a live ISO.
Build the system you want
Choose an init system, core utilities, and extra packages in a profile. krep uses kpkg to assemble those system files.
Check upstream releases
# check reports; update writes versions and checksums $ krep check --package='*' --repo=/path/repo --backend=repology $ krep update --package=example --repo=/path/repo --backend=repology
check reports upstream changes. update writes new versions and checksums.
Compose a modular rootfs
# tty-live.kg (excerpt) schema_version: "1" package_mode: "binary" init: "jumpstart" extra_packages: - "kreato-live-essentials" - "linux" - "linux-firmware"
# select that profile by build type $ sudo krep rootfs --arch=amd64 --buildType=tty-live
A rootfs is the directory of system files that becomes the system root. Profiles are Kongue .kg files. package_mode, init, and extra_packages select the base and add-ons.
Build a bootable live ISO
# build a live ISO $ sudo krep iso --rootfs=/path/rootfs.tar.gz --output=/path/images
The image uses the input system’s kernel, modules, and init rather than the build host’s.
Raw EROFS disks
krep disk writes a raw GPT .img with a read-only EROFS root and separate kernel and initramfs files. It ships without a bootloader by default. Use --bootloader=grub to add UEFI boot support.
Optional Kickoff
For live ISOs, --initramfsGenerator=kickoff uses Kickoff instead of dracut and stores the root filesystem directly as a SquashFS image.
Build and boot boundaries
Rootfs builds may install host packages and use chroots or mounts. ISO assembly copies into a private workspace and uses no mounts or loop devices.
