Per Jessen wrote:
Roger Oberholtzer wrote:
On Wed, May 3, 2023 at 9:13 AM Per Jessen <per@opensuse.org> wrote:
I think this is how e.g. Knoppix works/ed - a fixed image and a ram file system, combined with unionfs. Probably also how our Live images work.
I've looked at overlayFS, and it seems to be what I need. I'm just not sure how to set it up in fstab.
Something like:
Mount the current / somewhere (/lower) Make a ram fs (/upper) Make an overlay of the two.
I'm not sure how to set up the 'work' area needed by the overlayfs in only fstab.
a zram device maybe? I have no experience with this type of setup, so I'm just guessing wildly. I expect you may have to do the setup in the initrd.
<more wild guessing> Years ago, I had a setup where I custom-built the initrd - basically, the kernel boots with the initrd as root, then prepares the actual root and does a pivot(). Maybe you have to look at something like that, with a custom linuxrc. </more wild guessing> -- Per Jessen, Zürich (16.9°C) Member, openSUSE Heroes (2016 - present) We're hiring - https://en.opensuse.org/openSUSE:Heroes