read-only rootfs + writable overlayfs made easy with dracut
90overlay | 2 years ago | ||
COPYING | 3 years ago | ||
README.md | 3 years ago |
This is a custom dracut module designed to facilitate the use of a read-write overlayfs on top of a read-only root filesystem.
It currently does the following:
Place the 90overlay module in /usr/lib/dracut/modules.d and generate your initramfs. It should get picked up automatically. Then, add the overlay= setting to your kernel command line. It can be anything recognized by udev:
You might need to explicitly add additional drivers and fsck tools in your initramfs, as once you booted onto the overlayfs, when regenerating the initramfs, dracut will not notice which fs module you will require, nor which fsck tool.
Then format a partition with whatever filesystem you wish to use, and create the following directories, with this exact naming: