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.
This commit is contained in:
parent
26be9035bd
commit
befe1df9a3
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue