Hi
I'm going to build a package that defines files that should be kept when doing sysupgrade.
Looking around I found a Makefile that does a direct entry:
$(INSTALL_DATA) ./files/firewall.upgrade $(1)/lib/upgrade/keep.d/firewall
see: https://dev.openwrt.org/browser/trunk/p … ?rev=36622
But l also found packages like mosquitto that have an entry in keep.d but nothing in the Makefile that seems to do that:
see: https://github.com/remakeelectric/owrt_ … o/Makefile
I thought the following part of the Makefile would trigger it but one line is missing in keep.d
("/etc/mosquitto/mosquitto.conf" is missing):
define Package/$(PKG_NAME)/conffiles
/etc/mosquitto/mosquitto.conf
/etc/config/mosquitto
endef
So, even if I know how to make an entry to keep.d in the Makefile I'm wondering what else is causing entries (or in other words, what is doing the trick in the mosquitto package? I guess it is "something" in the Makefile that I don't understand)
Thanks!