system

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

commit 5b6fd46eaee498b78f7fcdc10c82c018d71b576f
parent 2f824630cd51b11baa9d9d68277358f16a885dad
Author: torter <koubbamohamedrayan@gmail.com>
Date:   Sat, 21 Nov 2026 15:50:54 +0000

rc.subr: a script named like its daemon no longer finds itself, iso: resize2fs

Diffstat:
Mfiles/etc/rc.subr | 4+++-
Miso/profile/packages | 1+
2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/files/etc/rc.subr b/files/etc/rc.subr @@ -4,9 +4,11 @@ name=${0##*/} log() { echo "$name: $*"; } +# the script itself has the name of the daemon when they share it, so the shell running it is left out pids() { + _sh=$(readlink /proc/$$/exe) for _d in /proc/[0-9]*; do - read -r _c 2>/dev/null < $_d/comm && [ "$_c" = "${1:0:15}" ] && echo ${_d#/proc/} + read -r _c 2>/dev/null < $_d/comm && [ "$_c" = "${1:0:15}" ] && [ "$(readlink $_d/exe)" != "$_sh" ] && echo ${_d#/proc/} done } diff --git a/iso/profile/packages b/iso/profile/packages @@ -1,5 +1,6 @@ # what goes into the live image besides chamesle-base and the kernel e2fsprogs +e2fsprogs-extra dosfstools sfdisk lsblk