#19439: Some sysupgrade keep.d files not kept after r45272
----------------------+------------------------
Reporter: leitec | Owner: developers
Type: defect | Status: new
Priority: normal | Milestone:
Component: packages | Version: Trunk
Keywords: |
----------------------+------------------------
Some configuration files are no longer being kept between upgrades. This
is reproducible on a clean initramfs image as of r45313. The files in
question are in lists in /lib/upgrade/keep.d.
uboot-envtools, for example:
{{{
root@OpenWrt:/lib/upgrade/keep.d# cat /lib/upgrade/keep.d/uboot-envtools
/etc/config/ubootenv
/etc/fw_env.config
root@OpenWrt:/lib/upgrade/keep.d# sysupgrade -l | grep fw_env
root@OpenWrt:/lib/upgrade/keep.d#
}}}
Reverting r45272 restores normal behavior. Exploring a bit more with the
commit intact, however, I found that /lib/upgrade/keep.d/ppp appears to be
interfering with anything that comes after it.
{{{
root@OpenWrt:/lib/upgrade/keep.d# cp uboot-envtools ppo
root@OpenWrt:/lib/upgrade/keep.d# sysupgrade -l | grep fw_env
/etc/fw_env.config
root@OpenWrt:/lib/upgrade/keep.d# mv ppo ppq
root@OpenWrt:/lib/upgrade/keep.d# sysupgrade -l | grep fw_env
root@OpenWrt:/lib/upgrade/keep.d#
}}}
In fact, if you copy 'ppp' before 'base-files' most files are gone:
{{{
root@OpenWrt:/lib/upgrade/keep.d# cp ppp a
root@OpenWrt:/lib/upgrade/keep.d# sysupgrade -l
/etc/config/dhcp
/etc/config/system
/etc/dropbear/dropbear_dss_host_key
/etc/dropbear/dropbear_rsa_host_key
root@OpenWrt:/lib/upgrade/keep.d#
}}}
For completeness, here is 'ppp'
{{{
root@OpenWrt:/lib/upgrade/keep.d# cat ppp
/etc/ppp/ip-down
/etc/ppp/ip-up
/etc/ppp/ipv6-down
/etc/ppp/ipv6-up
root@OpenWrt:/lib/upgrade/keep.d#
}}}
which works fine with the old version of Busybox.
--
Ticket URL: <https://dev.openwrt.org/ticket/19439>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets