From befe1df9a3978dece8897d78f5c7527a26b5e69b Mon Sep 17 00:00:00 2001 From: ver4a Date: Sun, 25 Jan 2026 22:40:42 +0100 Subject: [PATCH] fix: use correct kernel version uname reports running/host kernel, we need the kernel contained in the image, that's the one that'll be running on a booted system. This same thing applies to the nvidia layer where I used the same method as I do here now. --- containers/Dockerfile.kde | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/containers/Dockerfile.kde b/containers/Dockerfile.kde index 369e80d..feb2189 100644 --- a/containers/Dockerfile.kde +++ b/containers/Dockerfile.kde @@ -63,7 +63,7 @@ COPY etc /etc COPY usr /usr # fix-up kconfig path -RUN sed -i "/SCX_FLAGS=/ s/$/ --kconfig \/usr\/lib\/modules\/$(uname -r)\/config/" /etc/default/scx +RUN sed -i "/SCX_FLAGS=/ s/$/ --kconfig \/usr\/lib\/modules\/$(rpm -qa kernel | sed 's/kernel-//g')\/config/" /etc/default/scx # Apply hardened firewall configuration RUN firewall-offline-cmd --set-default-zone public