swupdate: add preserve files
authorHugo Villeneuve <hugo@hugovil.com>
Tue, 29 Oct 2024 17:28:25 +0000 (13:28 -0400)
committerHugo Villeneuve <hugo@hugovil.com>
Thu, 31 Oct 2024 15:29:38 +0000 (11:29 -0400)
conf/distro/hvmpd.conf

index 6ba2fe1..a3f5fb4 100644 (file)
@@ -48,3 +48,16 @@ WIC_CREATE_EXTRA_ARGS:append = " --no-fstab-update"
 
 ALSA_DEVICE_ID ?= "0"
 SOUND_CARD ?= "default"
+
+# List of files/folders to preserve between updates:
+SWU_PRESERVE_FILES ?= "\
+    /root/.bash_history \
+    /etc/hostname \
+    /etc/localtime \
+    /etc/ssh/ssh_host_ecdsa_key \
+    /etc/ssh/ssh_host_ecdsa_key.pub \
+    /etc/ssh/ssh_host_ed25519_key \
+    /etc/ssh/ssh_host_ed25519_key.pub \
+    /etc/ssh/ssh_host_rsa_key \
+    /etc/ssh/ssh_host_rsa_key.pub \
+"