From ede536913daa0c7ddfe55e20c93d7b752daa5de3 Mon Sep 17 00:00:00 2001 From: Patrick Schleizer Date: Tue, 24 Dec 2019 06:00:41 -0500 Subject: [PATCH] no longer hardcode amd64 --- etc/default/grub.d/40_kernel_hardening.cfg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etc/default/grub.d/40_kernel_hardening.cfg b/etc/default/grub.d/40_kernel_hardening.cfg index f3e3c6e..b741b20 100644 --- a/etc/default/grub.d/40_kernel_hardening.cfg +++ b/etc/default/grub.d/40_kernel_hardening.cfg @@ -1,7 +1,8 @@ ## Copyright (C) 2019 - 2019 ENCRYPTED SUPPORT LP ## See the file COPYING for copying conditions. -kver="$(dpkg-query --show --showformat='${Version}' linux-image-amd64)" +kpkg="linux-image-$(dpkg --print-architecture)" +kver="$(dpkg-query --show --showformat='${Version}' "$kpkg")" #echo "## kver: $kver" ## Disables the merging of slabs of similar sizes.