Skip to main content

Module mounts

Module mounts 

Source
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§

EarlyMount
One declarative mount description.

Enums§

EarlyMountError

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 (say devtmpfs) 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 &str values and build C strings on the spot.