openwrt/package
nbd 42cd4e3de9 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>

Backport of r43061

git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43062 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-25 17:23:14 +00:00
..
base-files base-files: add /etc/shadow to list of essential files to keep in sysupgrade (bug 18206) 2014-10-25 17:23:14 +00:00
boot package:grub2: fix build error on linux missing libzfs 2014-08-03 11:15:48 +00:00
devel valgrind: fix build failure on uml 2014-09-01 13:21:44 +00:00
firmware create branch for barrier breaker (from trunk r41863) 2014-07-28 23:18:57 +00:00
kernel ath9k: fix regulatory notifier calls with CONFIG_ATH_USER_REGD=y (#18211) 2014-10-25 09:31:04 +00:00
libs openssl: add ABI_VERSION to fix package rebuild issues (fixes #18169) 2014-10-19 16:54:33 +00:00
network odhcp6c: avoid some unnecessary big mallocs 2014-10-25 10:39:31 +00:00
system procd: fix initial nand sysupgrade 2014-10-12 15:51:35 +00:00
utils package/*: remove useless explicit set of function returncode 2014-09-01 13:21:54 +00:00
Makefile BB: build: consider sub-directories when deploying packages to image with CONFIG_PER_FEED_REPO (#17430) 2014-08-09 12:11:34 +00:00