I installed debian to USB and now I want to startx on a RO file system. I edited fstab so that it looks like this (ignore the #):#tmpfs /tmp tmpfs defaults,noatime,nosuid,nodev,noexec,mode=1777,size=500M 0 0#tmpfs /root tmpfs defaults,noatime,nosuid,nodev,mode=1777,size=500M 0 0#tmpfs /var/log tmpfs defaults,noatime,nosuid,nodev,noexec,mode=1777,size=100M 0 0#tmpfs /var/tmp tmpfs defaults,noatime,nosuid,nodev,noexec,mode=1777,size=100M 0 0#tmpfs /var/run tmpfs defaults,noatime,nosuid,mode=1777,size=2m 0 0#tmpfs /var/spool/mqueue tmpfs defaults,noatime,nosuid,mode=1777,gid=12,size=100M 0 0trouble is, I get various errors from systemd services because either the ramdisk/tmpfs is not filled with expected dir/files or /var/run and /var/tmp give some sort of issue.Is there some way I can copy my existing /root and /var/log into the tmpfs version just after mount but prior to the service starting? I've got startx working but with /var/run and /var/tmp commented out and I copied my existing WM cfg files into the tmpfs /root manually - cups, console-kit-log-system, systemd-random-seed, anacron and smartd do not work.With /var/run and /var/tmp enabled I get Failed to start Trigger Flushing of Journal to persistent storageFailed to open runtime journal: Invalid argument
Is there a way to populate a ramdisk (tmpfs) automatically?
filesystems;systemd;live usb;tmpfs;ramdisk