Add minimal -devel packages as needed to build kernel modules
As discussed in the forum[1], package layering can work for building kernel modules, such as the nvidia driver. However, there are some problems with the -devel packages needed, as they need to match the exact version in the base image, and once the version bumps in the yum repo the old version isn't even available. So, this adds the minimal set of -devel packages needed to build a a kmod. This isn't enough to build a kernel module, but the rest needed can much more easily be layered. Given the current rawhide dependencies this adds the following packages: * elfutils-libelf-devel * glibc-devel * glibc-headers * kernel-devel * kernel-headers * libxcrypt-devel * zlib-devel This adds about 100 megs to a 4 gigabyte image, which I think is a fair compromise in order to be able to build kernel modules and support the nvidia drivers. [1] https://discussion.fedoraproject.org/t/supporting-the-nvidia-drivers-on-silverblue/849/6
This commit is contained in:
parent
93e89c4c5c
commit
31ad6acced
1 changed files with 6 additions and 0 deletions
|
@ -14,6 +14,12 @@ packages:
|
||||||
# hfs filesystem tools for Apple hardware
|
# hfs filesystem tools for Apple hardware
|
||||||
# See https://github.com/projectatomic/rpm-ostree/issues/1380
|
# See https://github.com/projectatomic/rpm-ostree/issues/1380
|
||||||
- hfsplus-tools
|
- hfsplus-tools
|
||||||
|
# Bundle the minimal -devel packages needed to build a kernel.
|
||||||
|
# This is needed because we can't rely on layering to install these
|
||||||
|
# due to version conflicts with the base image.
|
||||||
|
- glibc-devel
|
||||||
|
- kernel-devel
|
||||||
|
- elfutils-libelf-devel
|
||||||
|
|
||||||
repos:
|
repos:
|
||||||
- fedora-rawhide
|
- fedora-rawhide
|
||||||
|
|
Loading…
Reference in a new issue