Root OverlayFS for Raspberry Pi on Void Linux
Usage
- Checkout this repository on the Raspberry Pi, then enter the cloned directory.
- Do
cp -r 95zoverlayfs /usr/lib/dracut/modules.d/
- Do
dracut --force /boot/initrd.img
- In
/boot/config.txt
add the following text:
initramfs initrd.img followkernel
- In
/boot/cmdline.txt
add the following text at the endboot=overlay
.
Notes
The interface is designed to look like/mimick what Raspbian/Raspberry Pi OS does with overlayfs.
If you want to disable it you can disable booting from initramfs, remove boot=overlay
or just change
overlay
to anything else.
This is a rather hacky solution, but it works for me.