commit f1b26a6b9c75e0f0a4141b3d260babb66a3bd675
parent c42dc6d523f3e31b48c126ccea47a54ff942aaeb
Author: torter <koubbamohamedrayan@gmail.com>
Date: Mon, 16 Nov 2026 21:51:27 +0000
init is called Winchester, awk in the base set
Diffstat:
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/files/sbin/init b/files/sbin/init
@@ -1,5 +1,5 @@
#!/usr/bin/mksh
-# pid 1: runs /etc/rc, keeps the gettys of init.conf alive, and stops the machine on a signal.
+# winchester, pid 1: runs /etc/rc, keeps the gettys of init.conf alive, and stops the machine on a signal.
# INT and TERM reboot, USR1 halts, USR2 powers off
export PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
mountpoint -q /proc || mount -t proc proc /proc
diff --git a/handbook/handbook.md b/handbook/handbook.md
@@ -29,7 +29,7 @@ The parts:
| rifle | the coreutils, all in one C file; `cat`, `ls`, `cp` and the rest are links to one program |
| mag | the package manager; it reads NetBSD pkgsrc packages as they are, and recipes of its own |
| mksh | the shell, login shell and `/bin/sh` |
-| init | `/sbin/init`, a shell script that runs under mksh, in the style of FreeBSD's: `/etc/rc`, `/etc/init.conf`, services |
+| 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 |
There is nothing from GNU in the system. Two exceptions are on the machine that builds: the kernel's own build tools,
@@ -581,7 +581,7 @@ and remove in a scratch root. It needs ftp, tar and the rifle tools in PATH.
### 6.1 init
-`/sbin/init` is a mksh script, and it works the way FreeBSD's init does: the kernel starts it as process 1, it runs
+The init is called Winchester. `/sbin/init` is a mksh script, and it works the way FreeBSD's init does: the kernel starts it as process 1, it runs
`/etc/rc`, then it keeps a getty on every tty and waits for a signal. The files are in `files/` in the sources and
`chamesle-bootstrap` copies them into the root. Step by step:
diff --git a/tools/chamesle-bootstrap b/tools/chamesle-bootstrap
@@ -12,7 +12,7 @@ usage() {
echo " -n host name of the new system (default chamesle)" >&2
exit 2
}
-base="sys-libs/musl devel/gmake archivers/libarchive app-arch/bsdtar archivers/pigz shells/mksh sys-apps/util-linux sys-apps/kmod sys-apps/eudev net/dhcpcd net/tnftp sysutils/e2fsprogs sysutils/dosfstools sys-boot/limine sys-kernel/linux sys-kernel/linux-firmware sys-firmware/sof-firmware sys-firmware/wireless-regdb editors/vim sys-fs/zfs sys-kernel/zfs-module lang/clang devel/lld lang/compiler-rt lang/libunwind"
+base="sys-libs/musl devel/gmake lang/nawk archivers/libarchive app-arch/bsdtar archivers/pigz shells/mksh sys-apps/util-linux sys-apps/kmod sys-apps/eudev net/dhcpcd net/tnftp sysutils/e2fsprogs sysutils/dosfstools sys-boot/limine sys-kernel/linux sys-kernel/linux-firmware sys-firmware/sof-firmware sys-firmware/wireless-regdb editors/vim sys-fs/zfs sys-kernel/zfs-module lang/clang devel/lld lang/compiler-rt lang/libunwind"
name=chamesle
while getopts r:s:n: o; do
case $o in