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