commit bee11b515ea1fb95b2ed2b00a7a08c99ddd49398
parent 1addb0b25f50a83320d49e6d057a7cc9cfc402d8
Author: torter <koubbamohamedrayan@gmail.com>
Date: Sat, 14 Nov 2026 19:04:04 +0000
init: the live system logs straight into mksh, a failed service no longer drops to sulogin, no remount on the overlay; the standard groups
Diffstat:
3 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/files/etc/init.conf b/files/etc/init.conf
@@ -10,5 +10,5 @@ modules = {}
# $tty is the name of the line; getty-NAME overrides getty for one line
ttys = {tty1,ttyS0}
-getty = agetty --noclear $tty linux
-getty-ttyS0 = agetty -L $tty 115200 vt100
+getty = agetty --noclear -n -l /usr/bin/mksh $tty linux
+getty-ttyS0 = agetty -L -n -l /usr/bin/mksh $tty 115200 vt100
diff --git a/files/etc/rc b/files/etc/rc
@@ -1,7 +1,7 @@
#!/bin/sh
# run by init at boot
. /etc/init.sh
-mount -o remount,rw / || echo "rc: / stays read-only" >&2
+grep -q " / overlay " /proc/mounts || mount -o remount,rw / || echo "rc: / stays read-only" >&2
if [ "$1" = autoboot ]; then
fsck -A -R -p -T
case $? in 0|1) ;; *) echo "rc: the file system check failed" >&2; exit 1;; esac
@@ -20,3 +20,4 @@ dmesg > /var/log/dmesg.boot
for s in $(conf boot-services); do
service "$s" start
done
+exit 0
diff --git a/tools/chamesle-bootstrap b/tools/chamesle-bootstrap
@@ -59,7 +59,7 @@ put "$files"
[ -e etc/passwd ] || cat > etc/passwd <<P
root:x:0:0:root:/root:/usr/bin/mksh
P
-[ -e etc/group ] || printf 'root:x:0:\nwheel:x:10:\nusers:x:100:\n' > etc/group
+[ -e etc/group ] || printf 'root:x:0:\nbin:x:1:\ndaemon:x:2:\nsys:x:3:\nadm:x:4:\ntty:x:5:\ndisk:x:6:\nlp:x:7:\nmem:x:8:\nkmem:x:9:\nwheel:x:10:\nfloppy:x:11:\nmail:x:12:\nuucp:x:14:\nman:x:15:\naudio:x:18:\ncdrom:x:19:\ndialout:x:20:\ntape:x:26:\nvideo:x:27:\ninput:x:97:\nkvm:x:78:\nrender:x:105:\nclock:x:106:\nusers:x:100:\n' > etc/group
[ -e etc/shells ] || printf '/bin/sh\n/usr/bin/mksh\n/usr/bin/ksh\n' > etc/shells
[ -e etc/fstab ] || printf '# device mount type options dump pass\nproc /proc proc defaults 0 0\nsysfs /sys sysfs defaults 0 0\ntmpfs /tmp tmpfs mode=1777 0 0\n' > etc/fstab
[ -e etc/profile ] || cat > etc/profile <<'P'