fix etc/default/grub.d/40_kernel_hardening.cfg

in Qubes if no kernel package is installed
This commit is contained in:
Patrick Schleizer 2020-04-08 16:46:11 +00:00
parent bfd6018d8d
commit 72228946dc
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -1,8 +1,8 @@
## Copyright (C) 2019 - 2020 ENCRYPTED SUPPORT LP <adrelanos@riseup.net>
## See the file COPYING for copying conditions.
kpkg="linux-image-$(dpkg --print-architecture)"
kver="$(dpkg-query --show --showformat='${Version}' "$kpkg")"
kpkg="linux-image-$(dpkg --print-architecture)" || true
kver="$(dpkg-query --show --showformat='${Version}' "$kpkg")" 2>/dev/null || true
#echo "## kver: $kver"
## Disables the merging of slabs of similar sizes.