foundry
Foundry OS: the operating system built on the Rustbelt kernel
| author | Grok Bot <grokbot@localhost> | 2026-10-31 18:57:30 -0700 |
|---|---|---|
| commit | 7bb1fe293e4b7bd93df0d5bfc19dd77574f53ca7 | |
| parent | 5b5c90c345a0aeebe7644dc3753f0f43b3cfc0cd | |
| tree | browse files at this commit | |
rootfs/etc: passwd, group, hosts, resolv.conf, motd for the future ext2 root (not staged under contract v1)
| A | rootfs/etc/README.md | +11 -0 |
| A | rootfs/etc/group | +2 -0 |
| A | rootfs/etc/hosts | +3 -0 |
| A | rootfs/etc/motd | +1 -0 |
| A | rootfs/etc/passwd | +2 -0 |
| A | rootfs/etc/resolv.conf | +2 -0 |
6 files changed, 21 insertions, 0 deletions
@@ -0,0 +1,11 @@+# /etc: for the contract-v2 root file system (milestone M3)++These files are **not** copied into the contract-v1 image: under v1 the+kernel builds `/` itself (a ramfs with its own `/etc/motd`) and our disk is+only mounted at `/mnt/disk0`. Adding them to the FAT32 disk would change the+`ls` output the self-test checks. They go live when the OS disk becomes+the ext2 root (see docs/plan.md).++- `passwd`, `group`: so musl's `getpwuid(0)` works (`ls -l` owner names, `id`).+- `hosts`, `resolv.conf`: name lookup through musl's resolver (DNS at 10.0.2.3).+- `motd`: the login banner.
@@ -0,0 +1,2 @@+root:x:0:+tyler:x:1000:
@@ -0,0 +1,3 @@+127.0.0.1 localhost+10.0.2.2 gateway+10.0.2.100 testserver
@@ -0,0 +1 @@+Welcome to Foundry OS, running on the Rustbelt kernel.
@@ -0,0 +1,2 @@+root:x:0:0:root:/root:/bin/rbsh+tyler:x:1000:1000:Tyler:/home/tyler:/bin/rbsh
@@ -0,0 +1,2 @@+# QEMU user-mode networking (slirp) runs a DNS forwarder here.+nameserver 10.0.2.3