From 73c7a7ba4815d3691cc2a4a3e4d7afd43e0700ed Mon Sep 17 00:00:00 2001 From: Uli Martens Date: Sun, 2 Dec 2012 21:50:06 +0100 Subject: [PATCH] use xzcat to unpack kernel image, not lzcat Signed-off-by: Martin Zobel-Helas --- dsa-nagios-checks/checks/dsa-check-running-kernel | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dsa-nagios-checks/checks/dsa-check-running-kernel b/dsa-nagios-checks/checks/dsa-check-running-kernel index 0ff3ed3..a5874dc 100755 --- a/dsa-nagios-checks/checks/dsa-check-running-kernel +++ b/dsa-nagios-checks/checks/dsa-check-running-kernel @@ -147,7 +147,7 @@ get_image_linux() { off=`get_offset "$image" $LZHDR` [ "$?" != "0" ] && off="-1" if [ "$off" -ne "-1" ]; then - (dd ibs="$[off-1]" skip=1 count=0 && dd bs=512k) < "$image" 2>/dev/null | lzcat 2>/dev/null + (dd ibs="$[off-1]" skip=1 count=0 && dd bs=512k) < "$image" 2>/dev/null | xzcat 2>/dev/null return fi -- 2.20.1