zipl/ngdump: Bail out if ngdump meta could not be saved

Bail out if the ngdump meta file could not be updated.
Save the boot log also for normal exit.

Signed-off-by: Mikhail Zaslonko <zaslonko@linux.ibm.com>
Acked-by: Alexander Egorenkov <egorenar@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Mikhail Zaslonko
2025-07-18 19:23:35 +02:00
committed by Jan Höppner
parent 48743aa28b
commit 54b3c9ef24
2 changed files with 4 additions and 1 deletions
@@ -104,5 +104,7 @@ logsave "$MNTDIR/makedumpfile.log" makedumpfile -f -E --message-level 7 -d 31 "$
# Create a file containing meta information for zgetdump
#
save_meta
[ $? -eq 0 ] || { bail_out "Could not update $META"; }
save_logs
quit