Expand description
Early-boot filesystem mounts — /proc, /sys, /dev, /run, /tmp.
Linux initramfs starts with just the cpio contents on a tmpfs — no
virtual filesystems mounted. Userspace tools that open /dev/null,
/proc/self, /sys/class/* etc. fail without these. tatara-init calls
mount_early_filesystems() before spawning any supervised service.
Non-Linux builds are no-ops so the crate compiles on macOS for dev.
Structs§
- Early
Mount - One declarative mount description.
Enums§
Constants§
- CANONICAL_
MOUNTS - The canonical set a Linux guest needs before any service starts.
Functions§
- mount_
early_ filesystems - Mount each entry from
CANONICAL_MOUNTS. Failures are returned as errors but don’t abort — the caller logs + continues so a missing kernel module (saydevtmpfs) doesn’t wedge the whole boot. - mount_
extra - Mount an extra filesystem declared via
(definit :mounts (…)). Unlike CANONICAL_MOUNTS the fields here are owned strings (the lisp form is dynamic), so we take&strvalues and build C strings on the spot.