base-files: fix sysupgrade -b/-l when -c is used
authorLuiz Angelo Daros de Luca <luizluca@gmail.com>
Tue, 21 Nov 2017 03:45:05 +0000 (01:45 -0200)
committerJohn Crispin <john@phrozen.org>
Thu, 14 Dec 2017 08:29:30 +0000 (09:29 +0100)
commit3e98674bcf91c5273fd4ac830581622ee7e62651
treec0f6b936848e91392414df3921eb6866cb30a9e7
parentcb02a376b360d01d70a8161e22f5491042295bcd
base-files: fix sysupgrade -b/-l when -c is used

Since /overlay/upper appeared, -b ignored -c silently (cause it was
still checking for /overlay/etc). Now, if /overlay/upper is absent,
sysupgrade -c will fail and exit verbosely.

Fix -l to consider -c (it never did).

Clean up to always use /overlay/upper/xxx instead of still checking
for /overlay/xxx.

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
package/base-files/files/sbin/sysupgrade