base-files: sysupgrade: always cleanup after backups
authorLuiz Angelo Daros de Luca <luizluca@gmail.com>
Thu, 20 Oct 2022 02:27:52 +0000 (23:27 -0300)
committerRafał Miłecki <rafal@milecki.pl>
Mon, 19 Feb 2024 11:41:40 +0000 (12:41 +0100)
commit700907bc6371939256129b00c1324f3a5942f007
tree66825bdadd0e044cb47f264edeb1e5e9c0750fce
parent14ac91c68c0e17b8ec705256f0d9092bfb899466
base-files: sysupgrade: always cleanup after backups

When tar was failing, it was exiting immediately. Some files and the
tmpfs mount (-k) would remain breaking the next backup attempt.

Also remove redundant $? from exit builtin call as exit already returns
the last command exit code when called.

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