Owut not respecting sysupgrade.conf?

Hi!
I upgraded from 24.10.0 RC1 to RC2 with "owut upgrade". It's the first time i use this as the attended sysupgrade in Luci told me that no upgrades were available. All my packages stays there but some custom configs are gone.

In praticular 2 files

/etc/hotplug.d/dhcp/99-sendmail
/etc/known_devices.txt

that i use to receive a mail when a new device connect. My doubt is this:

root@Home:~# cat /etc/sysupgrade.conf
## This file contains files and directories that should
## be preserved during an upgrade.

# /etc/example.conf
# /etc/openvpn/
/etc/hotplug.d/dhcp/99-sendmail
/etc/known_devices.txt

Shouldn't those 2 files be preserved?

Are they present in sysupgrade -l ?

1 Like

No, they're not. That's why they're not preserved?

In LuCI go to system >> Backup / Flash firmware >> go to the "Configuration" tab >> add the files with their path to the file to preserve them during a sysupgrade.

Like @brada4 says, sysupgrade -l should list those files. But only if they exist, so make sure you have versions of them in place and test something like this:

$ sysupgrade -l | grep -E '99-send|known_devices'
/etc/hotplug.d/dhcp/99-sendmail
/etc/known_devices.txt

This is outside owut's hands, it relies on sysupgrade to do the right thing for the backup/restore functions, so we need to focus on making sysupgrade work.

1 Like

They are there but erased during the owut procedure.

I checked with sysupgrade -lonly afetr the owut so a can't tell if before they were there.
I'm sure that they existed before because i created the by myself, changed permissions and the script worked as expected...

Create them again, then check with sysupgrade -l.