jcorporation / myMPDos

A music player image for Raspberry Pi based on Alpine Linux, MPD and myMPD.
https://jcorporation.github.io/
GNU General Public License v3.0
28 stars 6 forks source link

How to persist arbitrary files #40

Closed stratosgear closed 4 months ago

stratosgear commented 4 months ago

My usecase requires running tailscale for connecting my pi3 to my network (using vpn as keyword here, for anyone having issues with vpn access and similar issues)

Installation, configuration and usage of tailscale works correctly.

But the process of loging in to tailscale does not persist across reboots. This is because tailscale keeps it's login state in /var/lib/tailscale/tailscaled.state (Note: to be verified, as I cannot test this across boots)

How would I be able to persist this file so it is available across reboots?

Sidenote: I am vaguely familiar with overlays, and I am struggling to understand the exact mechanism that myMPDos is using for the alpine overlays. Where can I read more about it?

Thanks!

jcorporation commented 4 months ago

myMPDos uses the standard lib utility for persistence: https://wiki.alpinelinux.org/wiki/Alpine_local_backup

Simply use lbu include to include the desired directories in the lbu backup.

stratosgear commented 4 months ago

Confirm this works! You're the best!