I want to set up an Lubuntu-Kiosk read-only. So I want everything that user does, written in the RAM only. When the Raspberry is restarted, everything is deleted.
I have tried using the package overlayroot:
apt install overlayroot
nano /etc/overlayroot.conf
#--> overlayroot = "tmpfs"**
#REBOOT
But it didn't work.
I have got Lubuntu from: Ubuntu Pi flavour maker
Update: Content of /etc/overlayroot.conf
# This is the overlayroot config file
# ... nothing changed ...
# which is a tmpfs in memory.
overlayroot_cfgdisk="disabled"
overlayroot="tmpfs"
Update 2
I also tried to regenerate initramfs (after change as proposed in Felix' link to Odroid forum: sudo update-initramfs -c -k $(uname -r)
), nothing changed.
Also, lsmod
does not show overlayfs module to be loaded.
/etc/overlayroot.conf
? – b_laoshi Apr 27 '17 at 01:38mkinitramfs
- I never fully understood what happens, though. – Felix Apr 28 '17 at 15:43/
is specified in the kernel command line options found in the/boot/cmdline.txt
file. All of the sudden, it's clear to me why this wouldn't work. The boot process for a Raspberry Pi is a bit different from what you see on your PC. I'm guessing it is these very differences that would make it impossible (?) for overlayroot to do its thing. – b_laoshi May 05 '17 at 06:48