SYSTEMD-V....SERVICE(8)
โจ SYSTEMD-V....SERVICE(8) โจ
okay bestie, pull up a chair because we're talking about systemd-volatile-root.service โ aka systemd-volatile-root โ and it's giving chaos goblin energy in the best way possible ๐
๐ธ NAME ๐ธ
systemd-volatile-root.service, systemd-volatile-root โ the glow-up that makes your root file system volatile ๐ฆ
โจ SYNOPSIS โจ
systemd-volatile-root.service
/usr/lib/systemd/systemd-volatile-root
no cap, that's the whole thing ๐ซถ
๐ DESCRIPTION ๐
so here's the tea โ โ systemd-volatile-root.service is a service that literally replaces the root directory with a volatile memory file system ("tmpfs"), and it mounts the original (non-volatile) /usr/ inside it read-only. iconic behavior honestly ๐
the way this works means: vendor data from /usr/ is available as usual, but all configuration data in /etc/, all state data in /var/ and all other resources stored directly under the root directory are reset on boot and lost at shutdown โ which enables fully stateless systems. like, factory reset every single time you boot. main character energy fr fr ๐ฅ
this service is only enabled if full volatile mode is selected, for example by specifying "systemd.volatile=yes" on the kernel command line. and it runs only in the initrd, before the system transitions to the host's root directory. so it's a little pre-game ritual, not a whole vibe for the entire boot ๐ง
โ ๏ธ also important: this service is not used if "systemd.volatile=state" is used, because in that mode the root directory is non-volatile. different mode, different rules, don't @ me ๐ญ
๐ SEE ALSO ๐
and that's the whole page, bestie โ go forth and be stateless ๐โจ
mwah ๐ this was systemd 262.1, and if you read all the way down here you're literally the moment, no notes ๐
๐ฆ where this page comes from
- arch rolling: systemd 262.1-1 ยท LGPL-2.1-or-later AND CC0-1.0 AND GPL-2.0-or-later AND MIT-0
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms