system

the Chamesle handbook, init, live ISO and install helpers
git clone https://github.com/tortr-rs/system
Log | Files | Refs | README | LICENSE

commit 8ead96196ca0d51a5f920e9201f08c3f26ece242
parent 6cc8f112d9ce9c83c1207fefd026d5629707ed5c
Author: torter <koubbamohamedrayan@gmail.com>
Date:   Mon, 16 Nov 2026 23:12:49 +0000

handbook: SPAS is the package manager, hoard is its command

Diffstat:
Mhandbook/handbook.md | 16++++++++--------
Mhandbook/html.py | 4++--
2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/handbook/handbook.md b/handbook/handbook.md @@ -3,7 +3,7 @@ 1. About Chamesle 2. Preparing 3. Installing by hand -4. Using hoard +4. Using SPAS 5. rifle 6. The base system 7. The kernel and firmware @@ -27,7 +27,7 @@ The parts: | kernel | a prebuilt Linux 6.18 LTS kernel with its modules | | musl | the C library | | rifle | the coreutils, all in one C file; `cat`, `ls`, `cp` and the rest are links to one program | -| hoard | the package manager, from SPAS; it builds from source and runs Gentoo's ebuilds | +| SPAS | the package manager; its command is `hoard`. It builds from source and runs Gentoo's ebuilds | | mksh | the shell, login shell and `/bin/sh` | | init | Winchester, `/sbin/init`, a shell script that runs under mksh, in the style of FreeBSD's: `/etc/rc`, `/etc/init.conf`, services | | limine | the boot loader, BIOS and UEFI | @@ -83,13 +83,13 @@ Chamesle is built from a running Linux machine: any distribution, or the live IS Plan for about 20 GB of free disk space for the sources and build directories of a first install, and a network connection. -### 2.2 Building hoard and rifle +### 2.2 Building SPAS and rifle rifle is a single C file with no libc under it: cd $HOME/src/rifle && ./build.sh -`rifle/build.sh` leaves `./rifle` and a `bin/` directory with a link for every tool. hoard is a Rust program. For a +`rifle/build.sh` leaves `./rifle` and a `bin/` directory with a link for every tool. SPAS is a Rust program, and builds the `hoard` command. For a system on musl it is built for the musl target, as a static binary: cd $HOME/src/SimplePackagemAnagingSystem @@ -215,7 +215,7 @@ Then go on with 3.6 (fstab) and the rest. rifle (3.5) is on the ISO already, ski ### 3.4 Building the system from source, instead -Have hoard and the tree ready (sections 2.2 to 2.4) and run chamesle-bootstrap: +Have SPAS and the tree ready (sections 2.2 to 2.4) and run chamesle-bootstrap: $HOME/src/system/tools/chamesle-bootstrap -n yourhostname /mnt @@ -355,9 +355,9 @@ Then: 3. `hoard list` shows what the bootstrap put on the machine. -## 4. Using hoard +## 4. Using SPAS -hoard is the package manager of SPAS. It is a replacement for Portage written in Rust, and it runs Gentoo's ebuilds. Chamesle +SPAS is the package manager, and its command is `hoard`. It is a replacement for Portage written in Rust, and it runs Gentoo's ebuilds. Chamesle uses Gentoo's repository on the musl profile, so a package is an ebuild in `/var/db/repos/gentoo`, and everything is built on the machine that installs it, unless a binary package matches. @@ -534,7 +534,7 @@ are compared. The machine that runs the tests therefore has GNU coreutils for th not. `./build.sh` has to have run first. A case that starts with `@ro` runs with the whole file system read-only under `bwrap`, and is skipped when `bwrap` is missing. -hoard has tests of its own, in the SPAS sources (`cargo test`). +SPAS has tests of its own, in its sources (`cargo test`). ## 6. The base system diff --git a/handbook/html.py b/handbook/html.py @@ -5,7 +5,7 @@ import html, os, re, sys, time out = sys.argv[1] src = sys.argv[2] if len(sys.argv) > 2 else os.path.join(os.path.dirname(os.path.abspath(__file__)), 'handbook.md') -slugs = ['about', 'preparing', 'installing', 'hoard', 'rifle', 'base', 'kernel', 'iso', 'maintaining', 'files'] +slugs = ['about', 'preparing', 'installing', 'spas', 'rifle', 'base', 'kernel', 'iso', 'maintaining', 'files'] NAV = ('<a href="./">Home</a> |\n<a href="download.html">Download</a> |\n<b>Handbook</b> |\n' '<a href="packages.html">Packages</a> |\n<a href="new.html">News</a> |\n<a href="board.html">Board</a> |\n' @@ -147,7 +147,7 @@ for k, (title, body) in enumerate(chapters): toc.append('<ul>' + ''.join(f'<li><a href="{fname(k)}#{ident(s)}">{html.escape(s)}</a></li>' for s in subs) + '</ul>') toc.append('</li>') toc.append('</ol>') -open(os.path.join(out, 'docs.html'), 'w').write(page('Handbook', 'The Chamesle handbook, chapter by chapter: preparing, installing by hand, hoard, rifle, the base system, the kernel, the live ISO and the files of the system.', 'docs.html', '\n'.join(toc))) +open(os.path.join(out, 'docs.html'), 'w').write(page('Handbook', 'The Chamesle handbook, chapter by chapter: preparing, installing by hand, SPAS, rifle, the base system, the kernel, the live ISO and the files of the system.', 'docs.html', '\n'.join(toc))) for k, (title, body) in enumerate(chapters): name = re.sub(r'^\d+\. ', '', title)