]> Untitled Git - yocto/meta-hvmpd.git/commitdiff
mympd: preserve home screen accross upgrades
authorHugo Villeneuve <hugo@hugovil.com>
Sat, 28 Mar 2026 18:16:18 +0000 (14:16 -0400)
committerHugo Villeneuve <hugo@hugovil.com>
Sat, 28 Mar 2026 21:11:46 +0000 (17:11 -0400)
Signed-off-by: Hugo Villeneuve <hugo@hugovil.com>
conf/distro/hvmpd.conf
recipes-multimedia/musicpd/mympd_git.bb

index 78acf4706ffc125141e1e6fe47c222d09d79c3de..168af0e91442638dd0e8c3b9c09f3b8b581603f7 100644 (file)
@@ -52,10 +52,12 @@ SWU_PRESERVE_FILES ?= "\
     /etc/ssh/ssh_host_rsa_key \
     /etc/ssh/ssh_host_rsa_key.pub \
     /etc/exports \
+    /var/lib/private/mympd/state/home_list \
 "
 
 SWU_PRESERVE_FOLDERS ?= "\
     /root/.ssh \
+    /var/lib/private/mympd/pics/thumbs \
 "
 
 PREFERRED_RPROVIDER_libnss-mdns = "avahi-libnss-mdns"
index d37135dbf7a40f84b563811fff8c5e7b52b2aadb..33e28ecc53b2671266301fa65318541afa15463f 100644 (file)
@@ -20,10 +20,15 @@ do_install:append() {
     # Use port 8081 as port 8080 is used by ympd.
     sed -e '/^\[Service\]/s/$/\nEnvironment=MYMPD_HTTP_PORT=8081\nEnvironment=MYMPD_SSL=false/' \
         -i ${D}${systemd_system_unitdir}/mympd.service
+
+    install -m 0700 -d ${D}${localstatedir}/lib/private
+    install -m 0755 -d ${D}${localstatedir}/lib/private/mympd/state
+    install -m 0755 -d ${D}${localstatedir}/lib/private/mympd/pics/thumbs
 }
 
 FILES:${PN} = " \
     ${bindir}/* \
+    ${localstatedir}/lib/private/mympd \
 "
 
 SYSTEMD_SERVICE:${PN} = "mympd.service"