[systemd-devel] making persistent tmpfs folders with systemd

bobafetthotmail starshipeleven at hotmail.it
Tue Nov 17 22:55:12 PST 2015



On 11/17/2015 02:34 PM, Lennart Poettering wrote:
> On Mon, 16.11.15 18:50, bobafetthotmail (starshipeleven at hotmail.it) wrote:
>
>> I have a script that allows me to |mount| a folder to |tmpfs|, while
>> bind-mounting the same folder to another location, so I can sync the
>> contents (on startup, shutdown, and when needed) between the |tmpfs| and the
>> original folder on system drive.
>>
>> I use it for folders that see many writes, but whose data should be
>> preserved after a reboot.
>>
>> Mostly to use a USB flash drive or SD card as system drive, while running
>> programs that aggressively write round-robin databases or similar
>> small-size-high-write files.
>>
>>
>> Sooo..... I was wondering if systemd allows me to do something like that
>> natively.
>>
>> I did look at the tmpfs modules of systemd, but from what I understood it
>> does deal with making non-persistent tmpfs on the fly, clean temporary files
>> from a folder and so on.
>>
>> Is there a persistency option I did miss perhaps?
> No, there is not. And I don't really see this a strong enough usecase
> to make it something native.
>
> Sorry.
>
> Lennart
>

Thanks for the answer. :)

No need to be sorry, my question was a sanity check.

Now I can go and make a systemd module calling my script without fear of 
being called noob.

-Albert


More information about the systemd-devel mailing list