use xzcat to unpack kernel image, not lzcat
authorUli Martens <uli@youam.net>
Sun, 2 Dec 2012 20:50:06 +0000 (21:50 +0100)
committerMartin Zobel-Helas <zobel@debian.org>
Sun, 2 Dec 2012 21:04:38 +0000 (22:04 +0100)
Signed-off-by: Martin Zobel-Helas <zobel@debian.org>
dsa-nagios-checks/checks/dsa-check-running-kernel

index 0ff3ed3..a5874dc 100755 (executable)
@@ -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