Author: nbd Date: 2014-10-25 19:23:14 +0200 (Sat, 25 Oct 2014) New Revision: 43062
Modified: branches/barrier_breaker/package/base-files/files/lib/upgrade/keep.d/base-files-essential Log: base-files: add /etc/shadow to list of essential files to keep in sysupgrade (bug 18206) Based on bug #18206 sysupgrade can lead to loss of password information in certain situations. Most likely all users who will upgrade from versions r43017-43040, will lose their current passwords. :-( https://dev.openwrt.org/ticket/18206 Currently /etc/shadow is defined as a conffile in base-files: https://dev.openwrt.org/browser/trunk/package/base-files/Makefile#L37 But it is not defined in the default list of essential files to keep in sysupgrade: https://dev.openwrt.org/browser/trunk/package/base-files/files/lib/upgrade/keep.d/base-files-essential If exporting conffiles info fails, /etc/shadow can get lost. Shadow passwords are now the default, so saying that preserving /etc/passwd is essential while /etc/shadow is not, makes no sense. The attached patch adds /etc/shadow to the list of essential files. Signed-off-by: Hannu Nyman <[email protected]> Backport of r43061 Modified: branches/barrier_breaker/package/base-files/files/lib/upgrade/keep.d/base-files-essential =================================================================== --- branches/barrier_breaker/package/base-files/files/lib/upgrade/keep.d/base-files-essential 2014-10-25 17:22:46 UTC (rev 43061) +++ branches/barrier_breaker/package/base-files/files/lib/upgrade/keep.d/base-files-essential 2014-10-25 17:23:14 UTC (rev 43062) @@ -4,6 +4,7 @@ /etc/group /etc/passwd /etc/profile +/etc/shadow /etc/shells /etc/sysctl.conf /etc/rc.local _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
