openwrt/package/base-files/files/lib
Felix Fietkau 7a5002ec9d 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 <hannu.nyman@iki.fi>

SVN-Revision: 43061
2014-10-25 17:22:46 +00:00
..
functions scripts: fix wrong usage of '==' operator 2014-10-14 12:21:11 +00:00
preinit base-files: make use of new fstools 2014-04-07 15:10:15 +00:00
upgrade base-files: add /etc/shadow to list of essential files to keep in sysupgrade (bug 18206) 2014-10-25 17:22:46 +00:00
functions.sh default_postinst() fix wrong call of group_add 2014-10-15 17:55:13 +00:00