From e5b2f7f3bd307e963bdbe573399c901fa2b45fef Mon Sep 17 00:00:00 2001 From: Adel Kara Slimane Date: Mon, 4 Oct 2021 22:13:33 +0200 Subject: [PATCH] Fix boot issues in Ubuntu (and potentially Debian) (#330) Closes: #327 Closes: #322 Signed-off-by: Adel KARA SLIMANE --- linux-tkg-config/prepare | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/linux-tkg-config/prepare b/linux-tkg-config/prepare index be9291b..6cfd198 100644 --- a/linux-tkg-config/prepare +++ b/linux-tkg-config/prepare @@ -1302,6 +1302,14 @@ CONFIG_DEBUG_INFO_BTF_MODULES=y\r fi fi + # Distro specific workarounds in the .config file, when using Arch config file by default + if [ -z "$_configfile" ] || [ "$_configfile" = "config_hardened.x86_64" ]; then + if [[ "$_distro" =~ ^(Debian|Ubuntu)$ ]]; then + _disable "MODULE_COMPRESS_ZSTD" + _enable "MODULE_COMPRESS_NONE" + fi + fi + # set _menuconfig early for Void if [ "$_distro" = "Void" ]; then _menuconfig="Void"