RustForge

foundry

Foundry OS: the operating system built on the Rustbelt kernel

foundry / root / README.md
942 bytes ยท raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# root/: the root file system (drive A:, mounted at /)

Under boot contract v2 (docs/boot-contract.md) this tree becomes the ext2
**root partition** of out/foundry.img. `make image` copies it into
out/staging-v2/root and adds the programs:

| path            | what                                                   |
|-----------------|--------------------------------------------------------|
| /sbin/init      | Foundry OS init (rust/init), the first program (pid 1) |
| /bin            | rbsh, dash (also /bin/sh), the Rust tools, our C programs |
| /etc            | this repo's root/etc                                    |
| /scripts        | the self-test scripts init runs headless (`make test`) |
| /usr/bin, /tmp, /root, /home/tyler, /mnt/disk0, /mnt/share | empty dirs |

The kernel creates /dev and /proc itself. The FAT32 data disk (rootfs/,
drive B:) is mounted at /mnt/disk0, the exFAT share (share/, drive C:) at
/mnt/share.