* [ISSUE] Linux LTS + ZFS
@ 2021-04-21 5:09 Ypnose
2021-04-21 21:19 ` ericonr
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: Ypnose @ 2021-04-21 5:09 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 2674 bytes --]
New issue by Ypnose on void-packages repository
https://github.com/void-linux/void-packages/issues/30401
Description:
### System
* xuname:
`Void 5.10.31_1 x86_64 GenuineIntel uptodate rF`
### Expected behavior
I stick with LTS kernels because it fits my needs. Installing `zfs` will automatically pull `dkms` dependency and therefore `linux-headers` meta-package (`linux-headers-5.11_1` → `linux5.11-headers-5.11.15_1` as of today). Linux `5.11` is not installed on my system. Even if `linux5.10-headers` is installed, it will not be "detected" as the required dependendy here (instead of `linux5.11-headers`). It would be good to not install latest `linux5.xx-headers` on a system with LTS only.
### Actual behavior
`linux-headers-5.11_1` meta-package is pulled by `xbps` as a `dkms` dependency. Then, DKMS builds for `5.11.x` will be attempted on my system, even if no `5.11` kernel is installed :
```
$ xbps-query -l | grep linux
ii linux-headers-5.11_1 Linux kernel headers meta package
ii linux5.10-5.10.31_1 Linux kernel and modules (5.10 series)
ii linux5.10-headers-5.10.31_1 Linux kernel and modules (5.10 series) - source headers for 3rd party modules
ii linux5.11-headers-5.11.15_1 Linux kernel and modules (5.11 series) - source headers for 3rd party modules
```
Here's the `xbps` output :
```Building DKMS module 'zfs-2.0.4' for kernel-5.10.31_1... done.
Installing DKMS module 'zfs-2.0.4' for kernel-5.10.31_1... done.
Building DKMS module 'zfs-2.0.4' for kernel-5.11.11_1... done.
Installing DKMS module 'zfs-2.0.4' for kernel-5.11.11_1... done.
Building DKMS module 'zfs-2.0.4' for kernel-5.11.15_1... done.
Installing DKMS module 'zfs-2.0.4' for kernel-5.11.15_1... done.
Skipping kernel-5.4.78_1. kernel-headers package not installed...
Skipping kernel-5.9.11_1. kernel-headers package not installed...
Regenerating initramfs, please wait...
depmod: WARNING: could not open modules.order at /var/tmp/dracut.BJxh6X/initramfs/lib/modules/5.11.11_1: No such file or directory
depmod: WARNING: could not open modules.builtin at /var/tmp/dracut.BJxh6X/initramfs/lib/modules/5.11.11_1: No such file or directory
depmod: WARNING: could not open modules.order at /var/tmp/dracut.fyIoT7/initramfs/lib/modules/5.11.15_1: No such file or directory
depmod: WARNING: could not open modules.builtin at /var/tmp/dracut.fyIoT7/initramfs/lib/modules/5.11.15_1: No such file or directory
zfs-2.0.4_1: installed successfully.
```
On older systems, it takes quite some time for nothing.
### Steps to reproduce the behavior
Install `zfs` on systems with LTS kernels only.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Linux LTS + ZFS
2021-04-21 5:09 [ISSUE] Linux LTS + ZFS Ypnose
@ 2021-04-21 21:19 ` ericonr
2021-04-23 4:49 ` Ypnose
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: ericonr @ 2021-04-21 21:19 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 300 bytes --]
New comment by ericonr on void-packages repository
https://github.com/void-linux/void-packages/issues/30401#issuecomment-824364663
Comment:
Maybe we could check for both the kernel headers *and* the kernel package itself. Building for a given kernel whose headers aren't installed already fails...
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Linux LTS + ZFS
2021-04-21 5:09 [ISSUE] Linux LTS + ZFS Ypnose
2021-04-21 21:19 ` ericonr
@ 2021-04-23 4:49 ` Ypnose
2021-04-23 10:22 ` q66
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Ypnose @ 2021-04-23 4:49 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 415 bytes --]
New comment by Ypnose on void-packages repository
https://github.com/void-linux/void-packages/issues/30401#issuecomment-825383326
Comment:
Thanks for your help. Actually, if `dkms` do not rely on meta-package `linux-headers` which will pull latest `linux5.xx-headers`, but instead rely on the headers for the latest kernel installed, all problems could be solved. Unfortunately, I do not know how it can be done.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Linux LTS + ZFS
2021-04-21 5:09 [ISSUE] Linux LTS + ZFS Ypnose
2021-04-21 21:19 ` ericonr
2021-04-23 4:49 ` Ypnose
@ 2021-04-23 10:22 ` q66
2021-04-25 18:50 ` Ypnose
2022-05-18 11:53 ` ericonr
4 siblings, 0 replies; 6+ messages in thread
From: q66 @ 2021-04-23 10:22 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 242 bytes --]
New comment by q66 on void-packages repository
https://github.com/void-linux/void-packages/issues/30401#issuecomment-825560272
Comment:
```echo ignorepkg=linux-headers > /etc/xbps.d/ignore-latest.conf```
and then uninstall linux-headers
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Linux LTS + ZFS
2021-04-21 5:09 [ISSUE] Linux LTS + ZFS Ypnose
` (2 preceding siblings ...)
2021-04-23 10:22 ` q66
@ 2021-04-25 18:50 ` Ypnose
2022-05-18 11:53 ` ericonr
4 siblings, 0 replies; 6+ messages in thread
From: Ypnose @ 2021-04-25 18:50 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 175 bytes --]
New comment by Ypnose on void-packages repository
https://github.com/void-linux/void-packages/issues/30401#issuecomment-826371517
Comment:
Seems to do the trick, thank you.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Linux LTS + ZFS
2021-04-21 5:09 [ISSUE] Linux LTS + ZFS Ypnose
` (3 preceding siblings ...)
2021-04-25 18:50 ` Ypnose
@ 2022-05-18 11:53 ` ericonr
4 siblings, 0 replies; 6+ messages in thread
From: ericonr @ 2022-05-18 11:53 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 250 bytes --]
New comment by ericonr on void-packages repository
https://github.com/void-linux/void-packages/issues/30401#issuecomment-1129914258
Comment:
Another solution that has been floated is making all headers and kernels `provides=` for the metapackages.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2022-05-18 11:53 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-21 5:09 [ISSUE] Linux LTS + ZFS Ypnose
2021-04-21 21:19 ` ericonr
2021-04-23 4:49 ` Ypnose
2021-04-23 10:22 ` q66
2021-04-25 18:50 ` Ypnose
2022-05-18 11:53 ` ericonr
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).