From 98e88d1456ca0e8fa23809115c51c380a4bb2d3b Mon Sep 17 00:00:00 2001 From: madaidan <50278627+madaidan@users.noreply.github.com> Date: Mon, 23 Dec 2019 19:57:43 +0000 Subject: [PATCH] Detect kernel upgrades --- etc/default/grub.d/40_kernel_hardening.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/default/grub.d/40_kernel_hardening.cfg b/etc/default/grub.d/40_kernel_hardening.cfg index 47fd62f..1a992a5 100644 --- a/etc/default/grub.d/40_kernel_hardening.cfg +++ b/etc/default/grub.d/40_kernel_hardening.cfg @@ -1,7 +1,7 @@ ## Copyright (C) 2019 - 2019 ENCRYPTED SUPPORT LP ## See the file COPYING for copying conditions. -kver="$(uname -r)" +kver="$(dpkg-query --show --showformat='${Version}' linux-image-amd64)" #echo "## kver: $kver" ## Disables the merging of slabs of similar sizes.