Not being able to mount an Overlayfs
Description
I have been trying to set up the root filesystem of my coral dev board as an overlay (OverlayFS), with a lower layer RO and an upper layer RW. I have tried it with overlayroot and this .sh. Both uses for Raspbian, but state it should work on any Debian system. The first one does not change anything upon reboot. Upon checking Kernel support, everything seems fine.
I had some research done, initramfs was not present in the system. Although installed later, I am not sure if it is supported.
mendel@jumping-rabbit:~$ uname -r
4.14.98-imx
Is there any straighforward way to set up an overlay system that ensures nothing is written, and ensures that whatever is written will be temporal (deleted in each reboot) (the main point of using OverlayFS)? If not, my guess is that mounting the FS as RO and mounting /var (for variable files (probably some more like tmp) would do the trick, but it's not my main aim.
Click to expand!
Issue Type
Support
Operating System
Mendel Linux
Coral Device
Dev Board
Other Devices
No response
Programming Language
No response
Relevant Log Output
sudo modprobe overlay
mendel@jumping-rabbit:/$ cd sbin/
mendel@jumping-rabbit:/sbin$ ./overlayRoot.sh
./overlayRoot.sh: 59: ./overlayRoot.sh: modprobe: not found
-e ERROR: missing overlay kernel module
mendel@jumping-rabbit:/sbin$ sudo ./overlayRoot.sh
mount: /proc: proc already mounted on /proc.
-e ERROR: could not mount proc