Closed issue by aNTDwcDqvXR4h2PH on void-packages repository https://github.com/void-linux/void-packages/issues/50859 Description: ### Is this a new report? No ### System Info Void 6.6.33_1 x86_64 AuthenticAMD notuptodate rF ### Package(s) Affected xbps-0.59.2_3, zfs-2.2.4_2 ### Does a report exist for this bug with the project's home (upstream) and/or another distro? I am aware that the issue was discussed in #22817 however this issue is related to the same problem but different. ### Expected behaviour If I remember correctly on fresh install xbps does the following: 1. Download/verify packages 2. Extract packages 3. Build DKMS 4. Include DKMS in kernel 5. Generate initramfs ### Actual behaviour Issue begins when you have 2 kernel versions and update system with `xbps-install -Su` and there is new kernel or new zfs module. What happens: 1. `xbps` downloads/verifies packages 2. `xbps` extracts some packages 2.1. ~When zfs package is extracted `xbps` doesn't build DKMS and runs `dracut`~ DKMS removes old module. 2.2. `dracut` shows error about missing zfs module 2.3. Rest of the packages is extracted 3. DKMS is built. 4. initramfs is generated without zfs kernel module. Note: I'm not entirely sure if zfs module is missing in newest kernel or all of them. ### Steps to reproduce 1. Follow zfsbootmenu installation guide: https://docs.zfsbootmenu.org/en/v2.3.x/guides/void-linux/uefi.html 1.1. Set up: Single SATA Disk, Encrypted (I only omitted "-o compatibility"), zfsbootmenu package, refind in `/boot/efi/EFI/BOOT` 2. Setup Xorg, dwm, startx, zsh, apparmor (complain mode) and some other packages. 2.1. Right now there should be only one kernel version. 3. Wait for new kernel version. 4. Update system with `xbps-install -Su` 4.1. Now there should be 2 kernel versions. 5. See step 3. 6. See step 4. 6.1. Now there should be 3 kernel versions and the isssue should occur. 6.2. Dracut will run too soon and not include zfs module. You can however mitigate this issue if you run `xbps-reconfigure -f zfs` after step 6.2. ## System information: ### Users: - root - user ### ZFS pool ``` NAME USED AVAIL REFER MOUNTPOINT zroot 7.39G 892G 192K none zroot/DATA 1.32G 892G 192K none zroot/DATA/home 1.32G 892G 1.32G /home zroot/DATA/root 480K 892G 480K /root zroot/ROOT 6.07G 892G 192K none zroot/ROOT/void 4.22G 892G 4.22G / zroot/ROOT/void-backup 1.85G 892G 1.85G / ``` Note: This issue affects all my installations that have multiple kernel versions ### Kernel - zbm-kcl: quiet apparmor=1 security=apparmor - `ls -lah /boot` ``` total 284M drwxr-xr-x 3 root root 12 Jun 16 23:38 ./ drwxr-xr-x 16 root root 21 May 20 18:33 ../ drwxr-xr-x 3 root root 4.0K Jan 1 1970 efi/ -rw-r--r-- 1 root root 262K May 18 03:07 config-6.6.31_1 -rw-r--r-- 1 root root 262K May 29 01:00 config-6.6.32_1 -rw-r--r-- 1 root root 262K Jun 16 02:15 config-6.6.33_1 -rw------- 1 root root 83M Jun 16 23:49 initramfs-6.6.31_1.img -rw------- 1 root root 83M Jun 16 23:50 initramfs-6.6.32_1.img -rw------- 1 root root 82M Jun 16 23:50 initramfs-6.6.33_1.img -rw-r--r-- 1 root root 13M May 18 03:07 vmlinuz-6.6.31_1 -rw-r--r-- 1 root root 13M May 29 01:00 vmlinuz-6.6.32_1 -rw-r--r-- 1 root root 13M Jun 16 02:15 vmlinuz-6.6.33_1 ```