<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Immutable on The Empty Cup</title>
    <link>https://blog.plz.ac/en/tags/immutable/</link>
    <description>Recent content in Immutable on The Empty Cup</description>
    <generator>Hugo</generator>
    <language>en</language>
    <managingEditor>chris@lesscrowds.org (Chris Su)</managingEditor>
    <webMaster>chris@lesscrowds.org (Chris Su)</webMaster>
    <lastBuildDate>Thu, 26 Nov 2026 00:20:00 +0800</lastBuildDate>
    <atom:link href="https://blog.plz.ac/en/tags/immutable/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Volatoo: Immutable Root and Generation Updates on Gentoo</title>
      <link>https://blog.plz.ac/en/posts/volatoo/</link>
      <pubDate>Thu, 12 Nov 2026 08:00:00 +0800</pubDate><author>chris@lesscrowds.org (Chris Su)</author>
      <guid>https://blog.plz.ac/en/posts/volatoo/</guid>
      <description>&lt;p&gt;Volatoo is a distribution I&amp;rsquo;ve been working on this year (not me exactly — an AI, actually). The name comes from volatile and &lt;a href=&#34;https://www.gentoo.org/&#34;&gt;Gentoo&lt;/a&gt;. It is based on Gentoo, and the system is organized by generation. The repo is &lt;a href=&#34;https://github.com/Volatoo/Volatoo&#34;&gt;github.com/Volatoo/Volatoo&lt;/a&gt;, and the current &lt;code&gt;v0.1-dev&lt;/code&gt; preview boots both &lt;a href=&#34;https://github.com/OpenRC/openrc&#34;&gt;OpenRC&lt;/a&gt; and &lt;a href=&#34;https://systemd.io/&#34;&gt;systemd&lt;/a&gt; targets.&lt;/p&gt;&#xA;&lt;p&gt;Volatoo is an immutable system: the root filesystem comes from a read-only &lt;a href=&#34;https://docs.kernel.org/filesystems/squashfs.html&#34;&gt;SquashFS&lt;/a&gt; image, and writes at runtime go to &lt;a href=&#34;https://docs.kernel.org/filesystems/tmpfs.html&#34;&gt;tmpfs&lt;/a&gt;, gone on reboot.&lt;/p&gt;&#xA;&lt;p&gt;At boot, SquashFS is the &lt;a href=&#34;https://docs.kernel.org/filesystems/overlayfs.html&#34;&gt;OverlayFS&lt;/a&gt; lower layer and tmpfs is the upper, stacked into &lt;code&gt;/&lt;/code&gt;. What you see is a Gentoo you can read and write normally, except changes to &lt;code&gt;/usr&lt;/code&gt; live only in memory. On reboot the upper is discarded and the system returns to the image.&lt;/p&gt;&#xA;&lt;p&gt;Paths that need to survive (&lt;code&gt;/home&lt;/code&gt;, &lt;code&gt;/etc&lt;/code&gt;, &lt;code&gt;/var/log&lt;/code&gt;, and so on) are attached from a persistent partition at boot; that partition is optional.&lt;/p&gt;&#xA;&lt;p&gt;A generation is the version of the whole thing. An update produces a new read-only image and its mount record, and once the objects and manifest are written, &lt;code&gt;current&lt;/code&gt; is atomically pointed at it; a rollback points &lt;code&gt;previous&lt;/code&gt; back.&lt;/p&gt;&#xA;&lt;p&gt;This post covers the boot flow, persistence and updates, and ends with a list of what still needs work.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
