Skip to content
This repository has been archived by the owner on Dec 12, 2023. It is now read-only.

check-running-kernel: Add support for ZSTD compression #91

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions debian/patches/dsa/check_running_kernel_zstd_fix
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Index: pkg-nagios-plugins-contrib/dsa/checks/dsa-check-running-kernel
===================================================================
--- dsa-check-running-kernel.dist 2022-03-12 21:36:28.000000000 +0100
+++ dsa-check-running-kernel 2022-03-12 21:36:32.000000000 +0100
@@ -162,6 +162,8 @@
cat_vmlinux "$image" "\x02\x21\x4c\x18" "lz4 -dc" 0
# lzo compressed image
cat_vmlinux "$image" "\x89\x4c\x5a\x4f\x00\x0d\x0a\x1a" "lzop -dc" 0
+ # zstd compressed image
+ cat_vmlinux "$image" "\x28\xb5\x2f\xfd" "zstd -d" 0

echo "ERROR: Unable to extract kernel image." 2>&1
exit 1
1 change: 1 addition & 0 deletions debian/patches/series
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,4 @@ check_email_delivery/check_smtp_send-hello
check_raid/sort_megacli_numerical
check_raid/hpacucli_cache_fail
check_raid/fix_unparsed_error_cciss
dsa/check_running_kernel_zstd_fix