fs2ram

tools to preserve tmpfs contents across reboots

Install

All systems
curl cmd.cat/fs2ram.sh
Ubuntu
apt-get install fs2ram
Windows (WSL2)
sudo apt-get update sudo apt-get install fs2ram
Raspbian
apt-get install fs2ram

fs2ram

tools to preserve tmpfs contents across reboots

fs2ram manages temporary file systems across reboots. Each tmpfs mountpoint can be associated with a pre-mount script, which is executed by fs2ram at each shutdown/reboot before the file system is unmounted. The pre-unmount script must print a post-mount script on standard output, which is saved and then run at boot time after fs2ram mounts the corresponding file system. This package provides two pre-unmount scripts designed to preserve folder structure and file permissions across reboots: this is needed to allow hierarchies such as /var/cache or /var/log to be mounted as tmpfs.