[OpenWrt-Devel] RFC: Preserving smbpasswd & dnsmasq.time across sysupgrade

Bastian Bittorf bittorf at bluebottle.com
Mon Jul 27 04:25:51 EDT 2015

* Kevin Darbyshire-Bryant <kevin at darbyshire-bryant.me.uk> [26.07.2015 16:35]:
> The next question is how?  It looks like a few other packages create a
> subdir in 'keep.d' with a file containing a list of files that should be
> preserved by default.  I would anticipate creating 'samba' & 'dnsmasq'
> subdirs though the package Makefiles.  A better way?

they should just be marked as 'conffiles' in the package itself andi
these files are automatically choosen for including into sysupgrade.tgz

the magic is done in add_uci_conffiles() line 100 in
file package/base-files/files/sbin/sysupgrade -> /sbin/sysupgrade

bye, bastian
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list