chamesle

chamesle.org: the site of Chamesle, a small Linux distribution
git clone https://github.com/tortr-rs/chamesle
Log | Files | Refs | README

commit fda7e0ef64d72a3e78b3967ab10add8b603033df
parent 3a0a61b84db0fbe51e0e70698f3138619b306b44
Author: torter <koubbamohamedrayan@gmail.com>
Date:   Tue, 17 Nov 2026 18:34:07 +0000

site: the stage tarball is on the releases page

Diffstat:
Mdocs/download.html | 4++++
Mdocs/handbook-installing.html | 11++++++-----
2 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/docs/download.html b/docs/download.html @@ -57,6 +57,10 @@ <p>Find the stick with <code>lsblk</code> and use its name, not a partition. This erases everything on it.</p> <pre>dd if=chamesle.iso of=/dev/sdX bs=4M status=progress conv=fsync</pre> +<h2>The stage</h2> +<p>The system is also a stage tarball, 940 MB: musl, rifle, mksh, Winchester, gcc, python, perl, SPAS and sam. Unpack it into a new root as in <a href="handbook-installing.html">the handbook</a>. It is on the <a href="https://github.com/tortr-rs/chamesle/releases/tag/stage-20261117">releases page</a>, with its sha256.</p> + + <h2>What is on it</h2> <p>A live system with mksh, vim, SPAS and the Gentoo tree, <code>chamesle-chroot</code>, <code>chamesle-disk</code> (cfdisk, then vfat for boot and ZFS for the root), the disk tools (sfdisk, mkfs.ext4, mkfs.fat, zpool, zfs) and the diff --git a/docs/handbook-installing.html b/docs/handbook-installing.html @@ -53,6 +53,7 @@ <pre>mkfs.fat -F32 BOOT zpool create -f -o ashift=12 -O compression=zstd -O acltype=posixacl -O xattr=sa -O mountpoint=none -R /mnt rpool ROOT zfs create -o mountpoint=/ -o canmount=noauto rpool/root +zfs mount rpool/root zfs create -o mountpoint=/home rpool/home zfs create -o mountpoint=/var rpool/var zpool set bootfs=rpool/root rpool</pre> @@ -74,10 +75,10 @@ mkdir /mnt/boot mount /dev/sda2 /mnt/boot</pre> <p>The FAT partition is <code>/boot</code>. The kernel and <code>limine.conf</code> end up there, where limine looks for them on both BIOS and UEFI. The root can be ZFS by hand as well: the <code>zpool</code> and <code>zfs</code> lines of 3.1 are all there is to it.</p> <h2 id="s3-3">3.3 Unpacking the stage</h2> -<p>The system comes as a stage tarball, as on Gentoo: a root with the base already in it. rifle, mksh, Winchester, musl, gcc, python, perl, gettext, <code>hoard</code> and its records of what is installed (<code>/var/db/pkg</code>) are all inside. Nothing is compiled until you ask hoard for something. Check the tarball against its <code>.sha256</code> and unpack it:</p> -<pre>sha256sum -c chamesle-stage.tar.xz.sha256 - tar -C /mnt --exclude ./etc/fstab -xpf chamesle-stage.tar.xz</pre> -<p>[ -e /mnt/etc/fstab ] || tar -C /mnt -xpf chamesle-stage.tar.xz ./etc/fstab</p> +<p>The system comes as a stage tarball, as on Gentoo: a root with the base already in it. rifle, mksh, Winchester, musl, gcc, python, perl, gettext, <code>hoard</code> and its records of what is installed (<code>/var/db/pkg</code>) are all inside. Nothing is compiled until you ask hoard for something. It is on the releases page of github.com/tortr-rs/chamesle, with its <code>.sha256</code>. Check the tarball against its <code>.sha256</code> and unpack it:</p> +<pre>sha256sum -c chamesle-stage-20261117.tar.xz.sha256 + tar -C /mnt --exclude ./etc/fstab -xpf chamesle-stage-20261117.tar.xz</pre> +<p>[ -e /mnt/etc/fstab ] || tar -C /mnt -xpf chamesle-stage-20261117.tar.xz ./etc/fstab</p> <p>Make the directories the stage leaves out:</p> <pre>mkdir -p /mnt/proc /mnt/sys /mnt/dev /mnt/run /mnt/tmp /mnt/var/tmp /mnt/var/log /mnt/var/cache /mnt/home chmod 1777 /mnt/tmp /mnt/var/tmp</pre> @@ -96,7 +97,7 @@ hoard install -y -j4 --keep-going app-editors/vim</pre> <p>You do not need this to install. It is how the stage is made. Start from a Gentoo musl stage3, whose gcc, binutils, python, perl and gettext are binaries, check its digest, and take from it the files each package lists in <code>/var/db/pkg/<i>/</i>/CONTENTS</code>, plus the <code>/var/db/pkg</code> directories themselves so hoard knows they are installed. Put rifle, mksh, Winchester, the files in <code>files/</code> and a <code>hoard</code> built for musl on top, write <code>make.conf</code> and <code>package.provided</code>, build whatever else the base needs with hoard, and pack the root:</p> <pre>tar -C ROOT -cpf - --exclude=./proc --exclude=./sys --exclude=./dev --exclude=./run --exclude=./tmp \ --exclude=./boot --exclude=./home --exclude=./var/tmp --exclude=./var/cache --exclude=./var/log \ - --exclude=./var/db/repos . | xz -T0 &gt; chamesle-stage.tar.xz</pre> + --exclude=./var/db/repos . | xz -T0 &gt; chamesle-stage-20261117.tar.xz</pre> <p>GNU patch is the one thing the stage3 does not give, and it is built from source.</p> <h2 id="s3-6">3.6 fstab</h2> <p>If you used chamesle-disk the file is written. Look at it: the boot partition by UUID on <code>/boot</code>, then <code>proc</code>, <code>sysfs</code> and <code>tmpfs</code>, and nothing for the ZFS datasets, because ZFS mounts them itself.</p>