View Issue Details

IDProjectCategoryView StatusLast Update
0001359channel: kernel/el9kernel-mlpublic2023-06-28 18:22
ReporterstPro Assigned Totoracat  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
PlatformLinuxOSAlmaLinuxOS Version9.2
Summary0001359: kernel-ml-headers should provide "kernel-headers"
DescriptionWith kernel-ml on AlmaLinux 9.2 updating the glibc fails because of its "kernel-headers" dependency. As kernel-ml-headers and kernel-headers have common files installing both packages will fail.

~ rpm -q almalinux-release
almalinux-release-9.2-1.el9.x86_64

~ dnf list updates
Last metadata expiration check: 2:00:16 ago on Tue Jun 27 11:12:28 2023.
Available Upgrades
glibc.x86_64 2.34-60.el9 baseos
glibc-common.x86_64 2.34-60.el9 baseos
glibc-devel.x86_64 2.34-60.el9 appstreamglibc-gconv-extra.x86_64 2.34-60.el9 baseos
glibc-headers.x86_64 2.34-60.el9 appstreamglibc-langpack-ru.x86_64 2.34-60.el9 baseos
glibc-minimal-langpack.x86_64 2.34-60.el9 baseos
grub2-common.noarch 1:2.06-61.el9.alma baseos
grub2-efi-x64.x86_64 1:2.06-61.el9.alma baseos
grub2-tools.x86_64 1:2.06-61.el9.alma baseos
grub2-tools-efi.x86_64 1:2.06-61.el9.alma baseos
grub2-tools-extra.x86_64 1:2.06-61.el9.alma baseos
grub2-tools-minimal.x86_64 1:2.06-61.el9.alma baseos
shim-x64.x86_64 15.6-1.el9.alma.1 baseos


~ rpm -qa kernel\* | sort
kernel-ml-6.4.0-1.el9.elrepo.x86_64
kernel-ml-core-6.4.0-1.el9.elrepo.x86_64
kernel-ml-devel-6.4.0-1.el9.elrepo.x86_64
kernel-ml-headers-6.4.0-1.el9.elrepo.x86_64
kernel-ml-modules-6.4.0-1.el9.elrepo.x86_64
kernel-ml-tools-6.4.0-1.el9.elrepo.x86_64
kernel-ml-tools-libs-6.4.0-1.el9.elrepo.x86_64
kernel-srpm-macros-1.0-12.el9.noarch

~ dnf repoquery glibc-headers --requires
Last metadata expiration check: 2:02:10 ago on Tue Jun 27 11:12:28 2023.
glibc = 2.34-60.el9


~ dnf upgrade Last metadata expiration check: 2:02:26 ago on Tue Jun 27 11:12:28 2023. Dependencies resolved. =========================================================================================================================================================================== Package Architecture Version Repository Size ===========================================================================================================================================================================Upgrading: glibc x86_64 2.34-60.el9 baseos 1.9 M glibc-common x86_64 2.34-60.el9 baseos 308 k glibc-devel x86_64 2.34-60.el9 appstream 48 k glibc-gconv-extra x86_64 2.34-60.el9 baseos 1.6 M glibc-headers x86_64 2.34-60.el9 appstream 448 k glibc-langpack-ru x86_64 2.34-60.el9 baseos 537 k glibc-minimal-langpack x86_64 2.34-60.el9 baseos 35 k grub2-common noarch 1:2.06-61.el9.alma baseos 905 k grub2-efi-x64 x86_64 1:2.06-61.el9.alma baseos 1.3 M grub2-tools x86_64 1:2.06-61.el9.alma baseos 1.8 M grub2-tools-efi x86_64 1:2.06-61.el9.alma baseos 540 k grub2-tools-extra x86_64 1:2.06-61.el9.alma baseos 839 k grub2-tools-minimal x86_64 1:2.06-61.el9.alma baseos 603 k shim-x64 x86_64 15.6-1.el9.alma.1 baseos 678 k Installing dependencies: kernel x86_64 5.14.0-284.11.1.el9_2 baseos 3.4 M kernel-core x86_64 5.14.0-284.11.1.el9_2 baseos 17 M kernel-headers x86_64 5.14.0-284.11.1.el9_2 appstream 4.8 M
 kernel-modules x86_64 5.14.0-284.11.1.el9_2 baseos 37 M
 kernel-modules-core x86_64 5.14.0-284.11.1.el9_2 baseos 35 M

Transaction Summary
===========================================================================================================================================================================Install 5 Packages
Upgrade 14 Packages

Total size: 109 M
Is this ok [y/N]: y
Downloading Packages:
[SKIPPED] kernel-headers-5.14.0-284.11.1.el9_2.x86_64.rpm: Already downloaded
[SKIPPED] kernel-5.14.0-284.11.1.el9_2.x86_64.rpm: Already downloaded
[SKIPPED] kernel-core-5.14.0-284.11.1.el9_2.x86_64.rpm: Already downloaded
[SKIPPED] kernel-modules-5.14.0-284.11.1.el9_2.x86_64.rpm: Already downloaded
[SKIPPED] kernel-modules-core-5.14.0-284.11.1.el9_2.x86_64.rpm: Already downloaded
[SKIPPED] glibc-devel-2.34-60.el9.x86_64.rpm: Already downloaded
[SKIPPED] glibc-headers-2.34-60.el9.x86_64.rpm: Already downloaded
[SKIPPED] glibc-2.34-60.el9.x86_64.rpm: Already downloaded
[SKIPPED] glibc-common-2.34-60.el9.x86_64.rpm: Already downloaded
[SKIPPED] glibc-gconv-extra-2.34-60.el9.x86_64.rpm: Already downloaded
[SKIPPED] glibc-langpack-ru-2.34-60.el9.x86_64.rpm: Already downloaded
[SKIPPED] glibc-minimal-langpack-2.34-60.el9.x86_64.rpm: Already downloaded
[SKIPPED] grub2-common-2.06-61.el9.alma.noarch.rpm: Already downloaded
[SKIPPED] grub2-efi-x64-2.06-61.el9.alma.x86_64.rpm: Already downloaded
[SKIPPED] grub2-tools-2.06-61.el9.alma.x86_64.rpm: Already downloaded
[SKIPPED] grub2-tools-efi-2.06-61.el9.alma.x86_64.rpm: Already downloaded
[SKIPPED] grub2-tools-extra-2.06-61.el9.alma.x86_64.rpm: Already downloaded
[SKIPPED] grub2-tools-minimal-2.06-61.el9.alma.x86_64.rpm: Already downloaded
[SKIPPED] shim-x64-15.6-1.el9.alma.1.x86_64.rpm: Already downloaded
Running transaction check
Transaction check succeeded.
Running transaction test
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Transaction test error:
  file /usr/include/asm-generic/fcntl.h from install of kernel-headers-5.14.0-284.11.1.el9_2.x86_64 conflicts with file from package kernel-ml-headers-6.4.0-1.el9.elrepo.x86_64
  file /usr/include/asm-generic/hugetlb_encode.h from install of kernel-headers-5.14.0-284.11.1.el9_2.x86_64 conflicts with file from package kernel-ml-headers-6.4.0-1.el9.elrepo.x86_64
TagsNo tags attached.

Activities

pperry

2023-06-27 08:25

administrator   ~0009226

Please see the guidance here:

https://elrepo.org/tiki/kernel-ml

[quote]
There is no need to install the kernel-ml-headers package. It is only necessary if you intend to rebuild glibc and, thus, the entire operating system. If there is a need to have the kernel headers installed, you should use the current distributed kernel-headers package as that is related to the current version of glibc.
[/quote]

Does that resolve your query?

stPro

2023-06-27 08:31

reporter   ~0009227

Yes, but not completely.

Now grub2 and shim-x64 require the installation of a kernel-core.

pperry

2023-06-27 08:40

administrator   ~0009230

Last edited: 2023-06-27 08:41

Are you trying to install kernel-ml and remove all instances of the distro kernel?
Would it hurt to keep one instance of the distro kernel on the system (thus providing kernel-core)?

We can certainly check if kernel-ml-core should maybe also be meeting the provide for kernel-core, but the kernel-ml package set is generally configured to be installed alongside the distro kernel (hence the revised kernel-ml package name) as an alternative option to the distro kernel, not as a replacement for it.

Thanks

stPro

2023-06-27 08:43

reporter   ~0009231

~ dnf remove kernel-core
Dependencies resolved.
===========================================================================================================================================================================
 Package Architecture Version Repository Size
===========================================================================================================================================================================
Removing:
 kernel-core x86_64 4.18.0-477.13.1.el8_8 @baseos 70 M
Removing dependent packages:
 grub2-efi-x64 x86_64 1:2.02-148.el8.alma @baseos 2.1 M
 shim-x64 x86_64 15.6-1.el8.alma.1 @baseos 3.6 M
Removing unused dependencies:
 efi-filesystem noarch 3-3.el8 @baseos 0

Transaction Summary
===========================================================================================================================================================================
Remove 4 Packages


Okay, I get the idea. Thanks for the help. I will leave the kernel-core of the distribution. I hope this doesn't create problems.


Thanks!

stPro

2023-06-27 08:46

reporter   ~0009232

Previously, the installation of the distribution kernel-core was not required, but after the release of 9.2 and 8.8, this changed, so I decided to report it.

pperry

2023-06-27 09:30

administrator   ~0009233

Acknowledged.

It sounds like some dependencies changed in the latest releases. We do not have either of those two packages installed on our el8|9 systems.

Can you determine what in those two packages is required from kernel-core. If it's deps that can be met by kernel-ml-core, we can consider adding the provides.

stPro

2023-06-27 16:44

reporter   ~0009235

➜ ~ repoquery --requires --resolve shim-x64
Last metadata expiration check: 0:06:21 ago on Tue 27 Jun 2023 11:36:37 PM MSK.
dbxtool-0:8-5.el8_3.2.x86_64
efi-filesystem-0:3-3.el8.noarch
fwupd-0:1.7.8-1.el8.alma.1.x86_64
grub2-efi-ia32-1:2.02-148.el8.alma.x86_64
grub2-efi-x64-1:2.02-148.el8.alma.x86_64
kernel-core-0:4.18.0-477.13.1.el8_8.x86_64
mokutil-1:0.3.0-12.el8.x86_64
➜ ~ repoquery --requires --resolve grub2-efi-x64
Last metadata expiration check: 0:06:35 ago on Tue 27 Jun 2023 11:36:37 PM MSK.
bash-0:4.4.20-4.el8_6.x86_64
efi-filesystem-0:3-3.el8.noarch
grub2-common-1:2.02-148.el8.alma.noarch
grub2-tools-1:2.02-148.el8.alma.x86_64
grub2-tools-extra-1:2.02-148.el8.alma.x86_64
grub2-tools-minimal-1:2.02-148.el8.alma.x86_64
shim-x64-0:15.6-1.el8.alma.1.x86_64
➜ ~ repoquery --requires --resolve glibc-devel
Last metadata expiration check: 0:06:54 ago on Tue 27 Jun 2023 11:36:37 PM MSK.
bash-0:4.4.20-4.el8_6.x86_64
glibc-0:2.28-225.el8.i686
glibc-0:2.28-225.el8.x86_64
glibc-headers-0:2.28-225.el8.i686
glibc-headers-0:2.28-225.el8.x86_64
info-0:6.5-7.el8.x86_64
libgcc-0:8.5.0-18.el8.alma.i686
libgcc-0:8.5.0-18.el8.alma.x86_64
libxcrypt-devel-0:4.1.1-6.el8.i686
libxcrypt-devel-0:4.1.1-6.el8.x86_64
➜ ~ repoquery --requires --resolve glibc-headers
Last metadata expiration check: 0:07:04 ago on Tue 27 Jun 2023 11:36:37 PM MSK.
bash-0:4.4.20-4.el8_6.x86_64
glibc-0:2.28-225.el8.i686
glibc-0:2.28-225.el8.x86_64
kernel-headers-0:4.18.0-477.13.1.el8_8.x86_64
kernel-lt-headers-0:5.4.248-1.el8.elrepo.x86_64
kernel-ml-headers-0:6.4.0-1.el8.elrepo.x86_64

stPro

2023-06-27 16:45

reporter   ~0009236

For 9.2 release:

➜ ~ repoquery --requires --resolve shim-x64
Last metadata expiration check: 4:27:37 ago on Tue Jun 27 19:17:56 2023.
efi-filesystem-0:6-2.el9_0.0.1.noarch
fwupd-0:1.8.10-2.el9.alma.x86_64
grub2-efi-x64-1:2.06-61.el9.alma.x86_64
kernel-0:5.14.0-284.11.1.el9_2.x86_64
mokutil-2:0.6.0-4.el9.x86_64

stPro

2023-06-27 16:53

reporter   ~0009237

~ yum deplist shim-x64
Last metadata expiration check: 0:16:03 ago on Tue 27 Jun 2023 11:36:37 PM MSK.
package: shim-x64-15.6-1.el8.alma.1.x86_64
  dependency: /boot/efi/EFI/almalinux/grubx64.efi
   provider: grub2-efi-x64-1:2.02-148.el8.alma.x86_64
  dependency: almalinux(grub2-sig-key) >= 202303
   provider: grub2-efi-ia32-1:2.02-148.el8.alma.x86_64
   provider: grub2-efi-x64-1:2.02-148.el8.alma.x86_64
  dependency: almalinux(kernel-sig-key) >= 202303
   provider: kernel-core-4.18.0-477.13.1.el8_8.x86_64
  dependency: dbxtool >= 0.6-3
   provider: dbxtool-8-5.el8_3.2.x86_64
   provider: fwupd-1.7.8-1.el8.alma.1.x86_64
  dependency: efi-filesystem
   provider: efi-filesystem-3-3.el8.noarch
  dependency: mokutil >= 1:0.3.0-1
   provider: mokutil-1:0.3.0-12.el8.x86_64

toracat

2023-06-27 18:15

administrator   ~0009238

It looks like I cannot reproduce the reported result with RHEL-9.

On a RHEL-9 system:

< No kernel-ml installed on the system >
$ sudo repoquery --requires --resolve shim-x64

efi-filesystem-0:6-2.el9_0.noarch
fwupd-0:1.8.10-2.el9.x86_64
mokutil-2:0.6.0-4.el9.x86_64

< kernel-ml-6.4.0-1.el9.elrepo now installed >
$ sudo repoquery --requires --resolve shim-x64

efi-filesystem-0:6-2.el9_0.noarch
fwupd-0:1.8.10-2.el9.x86_64
mokutil-2:0.6.0-4.el9.x86_64

On an AlmaLinux-9 system:

< kernel-ml-6.4.0-1.el9.elrepo installed >
$ sudo repoquery --requires --resolve shim-x64

efi-filesystem-0:6-2.el9_0.0.1.noarch
fwupd-0:1.8.10-2.el9.alma.x86_64
grub2-efi-x64-1:2.06-61.el9.alma.x86_64 <===== Only in Alma
kernel-0:5.14.0-284.11.1.el9_2.x86_64 <===== Only in Alma
mokutil-2:0.6.0-4.el9.x86_64

stPro

2023-06-28 05:13

reporter   ~0009239

It seems that the problem is exclusively for AlmaLinux:

  dependency: almalinux(kernel-sig-key) >= 202303
   provider: kernel-core-4.18.0-477.13.1.el8_8.x86_64

toracat

2023-06-28 18:22

administrator   ~0009240

I'm closing this as 'not a bug'. Feel free to reopen if you have comments to add.

Issue History

Date Modified Username Field Change
2023-06-27 06:16 stPro New Issue
2023-06-27 06:16 stPro Status new => assigned
2023-06-27 06:16 stPro Assigned To => pperry
2023-06-27 08:17 pperry Project channel: elrepo/el9 => channel: kernel/el9
2023-06-27 08:17 pperry Category elrepo-release => General
2023-06-27 08:17 pperry Assigned To pperry => toracat
2023-06-27 08:17 pperry Category General => kernel-ml
2023-06-27 08:25 pperry Note Added: 0009226
2023-06-27 08:31 stPro Note Added: 0009227
2023-06-27 08:40 pperry Note Added: 0009230
2023-06-27 08:41 pperry Note Edited: 0009230
2023-06-27 08:43 stPro Note Added: 0009231
2023-06-27 08:46 stPro Note Added: 0009232
2023-06-27 09:30 pperry Note Added: 0009233
2023-06-27 16:44 stPro Note Added: 0009235
2023-06-27 16:45 stPro Note Added: 0009236
2023-06-27 16:53 stPro Note Added: 0009237
2023-06-27 18:15 toracat Note Added: 0009238
2023-06-28 05:13 stPro Note Added: 0009239
2023-06-28 18:22 toracat Note Added: 0009240
2023-06-28 18:22 toracat Status assigned => closed
2023-06-28 18:22 toracat Resolution open => no change required