At least git-core is need in order to update the zfs repo and gpg keys, yes. Or you could retrieve and install those manually if you prefer.
When you sign up for Linux, you also sign up for Linus as benevolent dictator/gatekeeper. For better or worse, his opinion on what gets integrated with the kernel is the only one that matters.
I should have a chat with him. I would propose setting up a script, that temporarily for a few seconds transfers the rights to the kernel to me, and my systems uploads the zfs code to the kernel tree, and then transfers the rights back to torvalds, Then they could sue me.
Hi again.. i need some help.. Long story short, a few days ago i decided to do a dnf up --refresh on my main desktop system, a mini pc with 8845HS / 780M GPU, mainly because i wanted the new Plasma 6.4..
Luckily i did it the āhardā way, ie first close all the trillions of open bash windows, apps, videos etc, reboot, take a snapshot of both / and /home in zfsbootmenu, reboot, and then do the dnf up --refresh
After complete there was the usual orange errors and warnings i didnāt pay so much attention to, as they are normally related to grub issues, and are harmless (might want to ask you about how to safely remove grub from a zfs on root w/ zfsbootmenu system, but thatās for later)
But i think there was an orange error message about dracut failing to update.. but i ignored it hoping for the best..
Well i rebooted, and ended up with a unbootable system, because the amd kernel module crashes at boot, which i then later found several posts about in the forum..
But i was not happy about that, having a desktop system that boots to black screens after an update is a major issue.. So, i didnāt feel like trying to fix it, and rolled back everything in zfsbootmenu, and still have not found anything in the forum suggesting the problem has been fixed.. not happy about that at all..
I gathered from skimming the forum posts that the amd problem had something to do with the failed dracut regenerate command..
Anyways, to the issue at hand, i just tried to upgrade my test VM which is a clone of the actual main desktop system, but doesnāt have any AMD GPU.. but does run your DNF wrapper script. I canāt remember when i updated the scripts from your main repo, the filedates are May 3..
After the main dnf up --refresh, i run zfs-update and then kernel-update, and posted below is the output, which includes the dracut error. As a last thing i try to update initramfs manually, and still get an error, so i wanted to post this if itās related to the major bug with kernel 6.15 and amdgpu etc.. or what you make of it
And also while your scripts are great, i would be happy to not having to use them, because basically before every system upgrade i have to check your github if there are any updates, which complicates things even further.. SO i will probably try living without them, and hope DNF5 now does not install a zfs incompatible with the kernel or vice versa.. sorry for the long postā¦
Anyways, the output from you wrappers after dnf up --refresh on the test VM in the next post, below this, as i exceeded allowed characters:
Complete!
zfs and kernel updates were excluded
run zfs-update to update zfs
run kernel-update to update the kernel
root@k8p-clone:~# zfs-update
Updating and loading repositories:
ZFS on Linux for Fedora 42 100% | 2.3 KiB/s | 3.0 KiB | 00m01s
ZFS on Linux for Fedora 42 100% | 21.3 KiB/s | 21.4 KiB | 00m01s
Repositories loaded.
Package Arch Version Repository Size
Upgrading:
libnvpair3 x86_64 2.3.3-1.fc42 zfs 101.1 KiB
replacing libnvpair3 x86_64 2.3.2-1.fc42 zfs 101.1 KiB
libuutil3 x86_64 2.3.3-1.fc42 zfs 66.0 KiB
replacing libuutil3 x86_64 2.3.2-1.fc42 zfs 66.0 KiB
libzfs6 x86_64 2.3.3-1.fc42 zfs 603.7 KiB
replacing libzfs6 x86_64 2.3.2-1.fc42 zfs 603.7 KiB
libzpool6 x86_64 2.3.3-1.fc42 zfs 4.1 MiB
replacing libzpool6 x86_64 2.3.2-1.fc42 zfs 4.1 MiB
zfs x86_64 2.3.3-1.fc42 zfs 1.9 MiB
replacing zfs x86_64 2.3.2-1.fc42 zfs 1.9 MiB
zfs-dkms noarch 2.3.3-1.fc42 zfs 58.7 MiB
replacing zfs-dkms noarch 2.3.2-1.fc42 zfs 58.7 MiB
zfs-dracut noarch 2.3.3-1.fc42 zfs 25.4 KiB
replacing zfs-dracut noarch 2.3.2-1.fc42 zfs 25.4 KiB
Transaction Summary:
Upgrading: 7 packages
Replacing: 7 packages
Total size of inbound packages is 33 MiB. Need to download 33 MiB.
After this operation, 78 KiB extra will be used (install 65 MiB, remove 65 MiB).
Is this ok [y/N]: y
ā¦
>>> Finished pre-install scriptlet: zfs-dkms-0:2.3.3-1.fc42.noarch
>>> Scriptlet output:
>>> Running pre installation script: /var/tmp/rpm-tmp.Bls3WR. Parameters: 2
>>> Removing old zfs dkms modules version 2.3.2 from all kernels.
>>> Module zfs/2.3.2 for kernel 6.14.4-200.fc41.x86_64 (x86_64):
>>> Before uninstall, this module version was ACTIVE on this kernel.
>>> Deleting /lib/modules/6.14.4-200.fc41.x86_64/extra/zfs.ko.xz
>>> Deleting /lib/modules/6.14.4-200.fc41.x86_64/extra/spl.ko.xz
>>> Running depmod...... done.
>>>
>>> Module zfs/2.3.2 for kernel 6.14.4-300.fc42.x86_64 (x86_64):
>>> Before uninstall, this module version was ACTIVE on this kernel.
>>> Deleting /lib/modules/6.14.4-300.fc42.x86_64/extra/zfs.ko.xz
>>> Deleting /lib/modules/6.14.4-300.fc42.x86_64/extra/spl.ko.xz
>>> Running depmod...... done.
>>>
>>> Deleting module zfs/2.3.2 completely from the DKMS tree.
>>> Executing post-transaction command...........(bad exit status: 3)
>>> Failed command:
>>> dracut --regenerate-all --force
>>>
[ 7/16] Upgrading zfs-dkms-0:2.3.3-1.fc42.noarch 100% | 284.7 KiB/s | 59.5 MiB | 03m34s
>>> Running post-install scriptlet: zfs-dkms-0:2.3.3-1.fc42.noarch
>>> Finished post-install scriptlet: zfs-dkms-0:2.3.3-1.fc42.noarch
>>> Scriptlet output:
>>> Running post installation script: /var/tmp/rpm-tmp.gIBrda. Parameters: 2
>>> Adding zfs dkms modules version 2.3.3 to dkms.
>>> Creating symlink /var/lib/dkms/zfs/2.3.3/source -> /usr/src/zfs-2.3.3
>>> Installing zfs dkms modules version 2.3.3 for the current kernel.
>>> Sign command: /lib/modules/6.14.4-300.fc42.x86_64/build/scripts/sign-file
>>> Signing key: /var/lib/dkms/mok.key
>>> Public certificate (MOK): /var/lib/dkms/mok.pub
>>>
>>> Running the pre_build script........................... done.
>>> Building module(s)........................... done.
>>> Signing module /var/lib/dkms/zfs/2.3.3/build/module/zfs.ko
>>> Signing module /var/lib/dkms/zfs/2.3.3/build/module/spl.ko
>>> Running the post_build script... done.
>>> Installing /lib/modules/6.14.4-300.fc42.x86_64/extra/zfs.ko.xz
>>> Installing /lib/modules/6.14.4-300.fc42.x86_64/extra/spl.ko.xz
>>> Running depmod..... done.
>>> Executing post-transaction command..................(bad exit status: 2)
>>> Failed command:
>>> dracut --regenerate-all --force
>>>
[ 8/16] Upgrading zfs-0:2.3.3-1.fc42.x86_64 100% | 7.7 MiB/s | 2.0 MiB | 00m00s
[ 9/16] Upgrading zfs-dracut-0:2.3.3-1.fc42.noarch 100% | 2.5 MiB/s | 28.4 KiB | 00m00s
[10/16] Removing zfs-dracut-0:2.3.2-1.fc42.noarch 100% | 375.0 B/s | 18.0 B | 00m00s
[11/16] Removing zfs-0:2.3.2-1.fc42.x86_64 100% | 4.6 KiB/s | 355.0 B | 00m00s
>>> Running pre-uninstall scriptlet: zfs-dkms-0:2.3.2-1.fc42.noarch
>>> Finished pre-uninstall scriptlet: zfs-dkms-0:2.3.2-1.fc42.noarch
>>> Scriptlet output:
>>> Running pre uninstall script: /var/tmp/rpm-tmp.TO6RLA. Parameters: 1
>>> This is an upgrade. Skipping pre uninstall action.
>>>
[12/16] Removing zfs-dkms-0:2.3.2-1.fc42.noarch 100% | 10.3 KiB/s | 4.2 KiB | 00m00s
[13/16] Removing libzfs6-0:2.3.2-1.fc42.x86_64 100% | 1.3 KiB/s | 13.0 B | 00m00s
[14/16] Removing libzpool6-0:2.3.2-1.fc42.x86_64 100% | 833.0 B/s | 5.0 B | 00m00s
[15/16] Removing libnvpair3-0:2.3.2-1.fc42.x86_64 100% | 1.0 KiB/s | 5.0 B | 00m00s
[16/16] Removing libuutil3-0:2.3.2-1.fc42.x86_64 100% [==================] | 3.0 B/s | 5.0 B | 00m00s
>>> Running trigger-post-uninstall scriptlet: filesystem-0:3.18-42.fc42.x86_64 [16/16] Removing libuutil3-0:2.3.2-1.fc42.x86_64 100% | 0.0 B/s | 5.0 B | 00m06s
Complete!
root@k8p-clone:~# kernel-update
Kernel update kernel-6.15.4-200.fc42.x86_64 is available.
Your current version of OpenZFS is zfs-2.3.3-1.fc42.x86_64.
Before proceeding, check https://github.com/openzfs/zfs/releases to veri-
fy that your version of OpenZFS is compatible with this kernel update.
Update to kernel-6.15.4-200.fc42.x86_64 [y/n]?: y
ā¦
>>> Running post-transaction scriptlet: kernel-core-0:6.15.4-200.fc42.x86_64
>>> Finished post-transaction scriptlet: kernel-core-0:6.15.4-200.fc42.x86_64
>>> Scriptlet output:
>>> grub2-probe: error: ../grub-core/kern/fs.c:123:unknown filesystem.
>>> Sign command: /lib/modules/6.15.4-200.fc42.x86_64/build/scripts/sign-file
>>> Signing key: /var/lib/dkms/mok.key
>>> Public certificate (MOK): /var/lib/dkms/mok.pub
>>>
>>> Autoinstall of module zfs/2.3.3 for kernel 6.15.4-200.fc42.x86_64 (x86_64)
>>> Running the pre_build script........................... done.
>>> Building module(s).......................... done.
>>> Signing module /var/lib/dkms/zfs/2.3.3/build/module/zfs.ko
>>> Signing module /var/lib/dkms/zfs/2.3.3/build/module/spl.ko
>>> Running the post_build script... done.
>>> Installing /lib/modules/6.15.4-200.fc42.x86_64/extra/zfs.ko.xz
>>> Installing /lib/modules/6.15.4-200.fc42.x86_64/extra/spl.ko.xz
>>> Running depmod....... done.
>>>
>>> Autoinstall on 6.15.4-200.fc42.x86_64 succeeded for module(s) zfs.
>>> grep: /etc/default/grub: No such file or directory
>>>
Complete!
root@k8p-clone:~#
root@k8p-clone:~# dracut --regenerate-all --force
dracut-install: Failed to find module 'zfs'
dracut[E]: FAILED: /usr/lib/dracut/dracut-install -D /var/tmp/dracut.CcGsaU/initramfs -H --kerneldir /lib/modules/6.14.4-200.fc41.x86_64/ -m zfs
dracut[F]: installkernel failed in module zfs
root@k8p-clone:~#
Never use --regenerate-all with the dracut command. Unfortunately, a recent change to the DKMS package has added that parameter and Dracut will run with it automatically every time a DKMS package is installed or updated. I have filed a bug report about this problem:
Edit: As a workaround for now, try creating a /etc/dkms/framework.conf.d/override.conf file containing the following line:
post_transaction=""
Thanks. But is this what is also causing the major issue with upgrading to 6.15 kernel, resulting in unbootable system for most amd users?.. like thousands and thousands of users?
Also can i ask, do you know of a safe way to remove grub to get rid of those warnings at every update, without the overall system going bonkers.. as grub is always expected by fedora..
When you use --regenerate-all, Dracut attempts to (re)compile the ZFS driver for all the kernels that are currently installed on the system. Doing that is unnecessary and it takes much more time than just compiling the driver for the new kernel. The new ZFS driver with the new Dracut modules might fail to build on the older kernels, even when it works with the current/newest kernel. This appears to be what is happening in your case. Notice that Dracut is attempting to build the ZFS driver for the old Fedora Linux 41 kernel ā 6.14.4-200.fc41.x86_64 ā that is still on your system when it fails:
root@k8p-clone:~# dracut --regenerate-all --force dracut-install: Failed to find module 'zfs' dracut[E]: FAILED: /usr/lib/dracut/dracut-install -D /var/tmp/dracut.CcGsaU/initramfs -H --kerneldir /lib/modules/6.14.4-200.fc41.x86_64/ -m zfs dracut[F]: installkernel failed in module zfs
If you can get it to stop trying to use the --regenerate-all parameter, it might work.
⦠do you know of a safe way to remove grub to get rid of those warnings at every update, without the overall system going bonkers.. as grub is always expected by fedora
Lines 38-54 (the ones beginning with the comment āremove some incompatible packages ā¦ā) are how I remove Grub from the system in the current version of my fedora-on-zfs script. I think you should be able to copy-and-paste those lines into a Bash shell script and it should work, but youāll need to start you Bash shell script with the following lines.
#!/usr/bin/bash
set -e
shopt -s lastpipe
However, I do not use zfsbootmenu. I do not know if that will complicate things. (I use systemd-boot.)
Thankyou so much.
Any OS you boot from zfsbootmenu is completely unuware of zfsbootmenu, as zfs bootmenu is a small linux OS with kernel and FS by itself, and does full kexec when it boots an actual system.
Itās really something very beautiful i could not live without.
For example the last disastrous upgrade leaving system with blank screens was no issue, simply a matter of choosing rollback in zfsbootmenu.. I would have been very pissed off without it, because in my age i have no interest in spending hours reading forum threads, trying to rescue my main desktop system which needs to be running 24/7..
I will try making a bash script to remove grub.. will test it in VM clone first..
But still waiting to get the big bug resolved so i can get plasma 6.4 on my main system..
ok, i reverted back to the situation before the last update, and did the followingā¦
This test VM is basically on the first fc42 kernel after 41 to 42 upgrade:
1: Remove old kernels. I create a bash script that runs a set of commands i found in some official fedora guide:
cd /usr/local/bin && nano remove-old-kernels
#!/usr/bin/bash
old_kernels=($(dnf repoquery --installonly --latest-limit=-1 -q))
if [ "${#old_kernels[@]}" -eq 0 ]; then
echo "No old kernels found"
exit 0
fi
if ! dnf remove "${old_kernels[@]}"; then
echo "Failed to remove old kernels"
exit 1
fi
echo "Removed old kernels"
exit 0
chmod +x remove-old-kernels
then run it, seems fine:
Package Arch Version Repository Size
Removing:
kernel x86_64 6.13.4-200.fc41 updates 0.0 B
kernel x86_64 6.14.4-200.fc41 updates 0.0 B
kernel-core x86_64 6.13.4-200.fc41 updates 73.9 MiB
kernel-core x86_64 6.14.4-200.fc41 updates 75.6 MiB
kernel-devel x86_64 6.11.4-301.fc41 @commandline 75.1 MiB
kernel-devel x86_64 6.14.4-200.fc41 updates 78.3 MiB
kernel-modules x86_64 6.13.4-200.fc41 updates 63.4 MiB
kernel-modules x86_64 6.14.4-200.fc41 updates 64.7 MiB
kernel-modules-core x86_64 6.13.4-200.fc41 updates 37.4 MiB
kernel-modules-core x86_64 6.14.4-200.fc41 updates 38.7 MiB
kernel-modules-extra x86_64 6.13.4-200.fc41 updates 2.7 MiB
kernel-modules-extra x86_64 6.14.4-200.fc41 updates 2.6 MiB
Transaction Summary:
Removing: 12 packages
After this operation, 512 MiB will be freed (install 0 B, remove 512 MiB).
Is this ok [y/N]: y
Running transaction
[ 1/13] Prepare transaction 100% | 7.0 B/s | 12.0 B | 00m02s
[ 2/13] Removing kernel-modules-extra-0:6.14.4-200.fc41.x86_64 100% | 11.0 B/s | 123.0 B | 00m10s
[ 3/13] Removing kernel-modules-extra-0:6.13.4-200.fc41.x86_64 100% | 13.0 B/s | 143.0 B | 00m10s
[ 4/13] Removing kernel-0:6.14.4-200.fc41.x86_64 100% | 24.4 KiB/s | 100.0 B | 00m00s
[ 5/13] Removing kernel-0:6.13.4-200.fc41.x86_64 100% | 9.8 KiB/s | 100.0 B | 00m00s
[ 6/13] Removing kernel-modules-0:6.13.4-200.fc41.x86_64 100% | 684.0 B/s | 2.3 KiB | 00m03s
[ 7/13] Removing kernel-modules-0:6.14.4-200.fc41.x86_64 100% | 685.0 B/s | 2.3 KiB | 00m03s
[ 8/13] Removing kernel-modules-core-0:6.14.4-200.fc41.x86_64 100% | 2.6 KiB/s | 3.1 KiB | 00m01s
>>> Running pre-uninstall scriptlet: kernel-core-0:6.14.4-200.fc41.x86_64
>>> Finished pre-uninstall scriptlet: kernel-core-0:6.14.4-200.fc41.x86_64
>>> Scriptlet output:
>>> dkms: removing module zfs/2.3.2 for kernel 6.14.4-200.fc41.x86_64 (x86_64)
>>> Module zfs/2.3.2 for kernel 6.14.4-200.fc41.x86_64 (x86_64):
>>> Before uninstall, this module version was ACTIVE on this kernel.
>>> Deleting /lib/modules/6.14.4-200.fc41.x86_64/extra/zfs.ko.xz
>>> Deleting /lib/modules/6.14.4-200.fc41.x86_64/extra/spl.ko.xz
>>>
>>> Running depmod... done.
>>> grep: /etc/default/grub: No such file or directory
>>>
[ 9/13] Removing kernel-core-0:6.14.4-200.fc41.x86_64 100% | 168.0 B/s | 17.0 B | 00m00s
[10/13] Removing kernel-modules-core-0:6.13.4-200.fc41.x86_64 100% | 5.2 KiB/s | 3.1 KiB | 00m01s
>>> Running pre-uninstall scriptlet: kernel-core-0:6.13.4-200.fc41.x86_64
>>> Finished pre-uninstall scriptlet: kernel-core-0:6.13.4-200.fc41.x86_64
>>> Scriptlet output:
>>> grep: /etc/default/grub: No such file or directory
>>>
[11/13] Removing kernel-core-0:6.13.4-200.fc41.x86_64 100% | 188.0 B/s | 17.0 B | 00m00s
[12/13] Removing kernel-devel-0:6.14.4-200.fc41.x86_64 100% | 10.1 KiB/s | 23.3 KiB | 00m02s
[13/13] Removing kernel-devel-0:6.11.4-301.fc41.x86_64 100% | 2.6 KiB/s | 22.8 KiB | 00m09s
Complete!
Removed old kernels
then also:
# rm /boot/*rescue*
rm: remove regular file '/boot/initramfs-0-rescue-a6670b12a88f429eb3d655e6c2797194.img'? y
rm: remove regular file '/boot/vmlinuz-0-rescue-a6670b12a88f429eb3d655e6c2797194'? y
2: then i created /etc/dkms/framework.conf.d/override.conf
with the contents post_transaction=""
so far so good, but trying to create a script to remove grub ends with an error.. (next post so i donāt exceed characters)
nano remove-grub
#!/usr/bin/bash
set -e
shopt -s lastpipe
# remove some incompatible packages and ban them from future installation
XXX=(
'grub2-*'
'os-prober'
'grubby'
'dracut-config-rescue'
'zfs-fuse'
)
rpm -qa | grep "${XXX[@]/*/--regexp=^&-}" | xargs -r rpm -e
DNF=('/usr/bin/dnf' '-q' '-y')
readlink "${DNF[0]}" | grep -o '[0-9]\+$' | read VER
[[ $VER -lt 5 ]] && VER=''
"${DNF[@]}" install "dnf$VER-command(config-manager)"
printf '\n'
(IFS=','; "${DNF[@]}" config-manager setopt "excludepkgs=${XXX[*]}";)
printf '\n'
errors with:
# remove-grub
error: Failed dependencies:
grub2-efi-ia32 >= 2.06-63 is needed by (installed) shim-ia32-15.8-3.x86_64
grub2-efi-x64 >= 2.06-63 is needed by (installed) shim-x64-15.8-3.x86_64
anyways the update went fine this time..
iāll continue to see how your bug report goes, is it really a new thing to do regenerate-all suddenly?
Seems like a pretty major change if that hasnāt been the practice before.. but i have no clue about these things
is it really a new thing to do regenerate-all suddenly?
Yeah, I first saw it the day I filed the bug report about 2 months ago. Hopefully someone fixes it soon. If not, I might add that override.conf to my installation script.
Also, thanks for letting me know about Grubās new dependency on shim. Iāll have to add 'shim-*' to that XXX list in my script.
Edit: Note that you probably donāt want to remove the shim package if you are using it for secure boot.
using secure boot? Iām not a masochist ![]()
Anyways, just for documentation purposes, the output when adding āshim-*ā to the list:
# remove-grub
Removing /usr/sbin/grubby
warning: file /boot/efi/EFI/fedora/shimia32.efi: remove failed: No such file or directory
warning: file /boot/efi/EFI/fedora/mmia32.efi: remove failed: No such file or directory
warning: file /boot/efi/EFI/fedora/BOOTIA32.CSV: remove failed: No such file or directory
warning: file /boot/efi/EFI/BOOT/fbia32.efi: remove failed: No such file or directory
warning: file /boot/efi/EFI/BOOT/BOOTIA32.EFI: remove failed: No such file or directory
warning: /boot/grub2/grubenv saved as /boot/grub2/grubenv.rpmsave
warning: file /boot/efi/EFI/fedora/shimx64.efi: remove failed: No such file or directory
warning: file /boot/efi/EFI/fedora/shim.efi: remove failed: No such file or directory
warning: file /boot/efi/EFI/fedora/mmx64.efi: remove failed: No such file or directory
warning: file /boot/efi/EFI/fedora/BOOTX64.CSV: remove failed: No such file or directory
warning: file /boot/efi/EFI/BOOT/fbx64.efi: remove failed: No such file or directory
warning: file /boot/efi/EFI/BOOT/BOOTX64.EFI: remove failed: No such file or directory
Removed '/etc/systemd/user/timers.target.wants/grub-boot-success.timer'.
Removing /usr/sbin/grub2-bios-setup
Removing /usr/sbin/grub2-install
Removing /usr/sbin/grub2-mkconfig
Removing /usr/sbin/grub2-reboot
Removing /usr/sbin/grub2-switch-to-blscfg
Removing /usr/sbin/grub2-macbless
Removing /usr/sbin/grub2-get-kernel-settings
Removing /usr/sbin/grub2-probe
Removing /usr/sbin/grub2-set-bootflag
Removing /usr/sbin/grub2-set-default
Removing /usr/sbin/grub2-set-password
Removing /usr/sbin/grub2-setpassword
Package "dnf5-plugins-5.2.13.1-1.fc42.x86_64" is already installed.
Nothing to do.
Just FYI, after running that script, in addition to those packages being removed, /etc/dnf/dnf.conf should now contain a excludepkgs=... line that will prevent them from being installed (or pulled-in automatically) in the future. If at some future time you decide that you actually want one or more of those packages, youāll have to edit /etc/dnf/dnf.conf to allow it.
/etc/dkms/framework.conf.d/override.conf
Hi again, well removing 'shim-*' was not a good idea, here is the output after upgrading to latest kernel 6.15.5-200.fc42 on my test VM:
# kernel-update
Kernel update kernel-6.15.5-200.fc42.x86_64 is available.
Your current version of OpenZFS is zfs-2.3.3-1.fc42.x86_64.
Before proceeding, check https://github.com/openzfs/zfs/releases to veri-
fy that your version of OpenZFS is compatible with this kernel update.
Update to kernel-6.15.5-200.fc42.x86_64 [y/n]?: y
Updating and loading repositories:
Repositories loaded.
Package Arch Version Repository Size
Upgrading:
kernel-devel-matched x86_64 6.15.5-200.fc42 updates 0.0 B
replacing kernel-devel-matched x86_64 6.15.4-200.fc42 updates 0.0 B
kernel-tools x86_64 6.15.5-200.fc42 updates 2.2 MiB
replacing kernel-tools x86_64 6.15.4-200.fc42 updates 2.2 MiB
kernel-tools-libs x86_64 6.15.5-200.fc42 updates 30.3 KiB
replacing kernel-tools-libs x86_64 6.15.4-200.fc42 updates 30.3 KiB
Installing:
kernel x86_64 6.15.5-200.fc42 updates 0.0 B
kernel-core x86_64 6.15.5-200.fc42 updates 96.8 MiB
kernel-devel x86_64 6.15.5-200.fc42 updates 79.1 MiB
kernel-modules x86_64 6.15.5-200.fc42 updates 93.9 MiB
kernel-modules-core x86_64 6.15.5-200.fc42 updates 67.2 MiB
kernel-modules-extra x86_64 6.15.5-200.fc42 updates 4.2 MiB
Transaction Summary:
Installing: 6 packages
Upgrading: 3 packages
Replacing: 3 packages
Total size of inbound packages is 210 MiB. Need to download 210 MiB.
After this operation, 341 MiB extra will be used (install 343 MiB, remove 2 MiB).
[1/9] kernel-0:6.15.5-200.fc42.x86_64 100% | 85.5 KiB/s | 22.1 KiB | 00m00s
[2/9] kernel-core-0:6.15.5-200.fc42.x86_64 100% | 10.1 MiB/s | 19.2 MiB | 00m02s
[3/9] kernel-devel-0:6.15.5-200.fc42.x86_64 100% | 4.6 MiB/s | 21.4 MiB | 00m05s
[4/9] kernel-modules-extra-0:6.15.5-200.fc42.x86_64 100% | 4.0 MiB/s | 4.3 MiB | 00m01s
[5/9] kernel-devel-matched-0:6.15.5-200.fc42.x86_64 100% | 68.3 KiB/s | 22.0 KiB | 00m00s
[6/9] kernel-modules-core-0:6.15.5-200.fc42.x86_64 100% | 8.5 MiB/s | 68.6 MiB | 00m08s
[7/9] kernel-modules-0:6.15.5-200.fc42.x86_64 100% | 10.8 MiB/s | 95.6 MiB | 00m09s
[8/9] kernel-tools-0:6.15.5-200.fc42.x86_64 100% | 660.4 KiB/s | 581.9 KiB | 00m01s
[9/9] kernel-tools-libs-0:6.15.5-200.fc42.x86_64 100% | 69.5 KiB/s | 34.7 KiB | 00m00s
----------------------------------------------------------------------------------------------------------------
[9/9] Total 100% | 22.5 MiB/s | 209.7 MiB | 00m09s
Running transaction
[ 1/14] Verify package files 100% | 4.0 B/s | 9.0 B | 00m02s
[ 2/14] Prepare transaction 100% | 8.0 B/s | 12.0 B | 00m01s
[ 3/14] Installing kernel-modules-core-0:6.15.5-200.fc42.x86_64 100% | 34.7 MiB/s | 67.7 MiB | 00m02s
[ 4/14] Installing kernel-core-0:6.15.5-200.fc42.x86_64 100% | 50.5 MiB/s | 28.5 MiB | 00m01s
[ 5/14] Installing kernel-modules-0:6.15.5-200.fc42.x86_64 100% | 7.1 MiB/s | 94.3 MiB | 00m13s
[ 6/14] Installing kernel-modules-extra-0:6.15.5-200.fc42.x86_64 100% | 359.7 KiB/s | 4.2 MiB | 00m12s
[ 7/14] Upgrading kernel-tools-libs-0:6.15.5-200.fc42.x86_64 100% | 172.6 KiB/s | 30.7 KiB | 00m00s
[ 8/14] Installing kernel-devel-0:6.15.5-200.fc42.x86_64 100% | 1.9 MiB/s | 83.3 MiB | 00m43s
[ 9/14] Upgrading kernel-devel-matched-0:6.15.5-200.fc42.x86_64 100% | 30.3 KiB/s | 124.0 B | 00m00s
[10/14] Upgrading kernel-tools-0:6.15.5-200.fc42.x86_64 100% | 18.4 MiB/s | 2.3 MiB | 00m00s
[11/14] Installing kernel-0:6.15.5-200.fc42.x86_64 100% | 60.5 KiB/s | 124.0 B | 00m00s
[12/14] Removing kernel-devel-matched-0:6.15.4-200.fc42.x86_64 100% | 5.1 KiB/s | 100.0 B | 00m00s
[13/14] Removing kernel-tools-0:6.15.4-200.fc42.x86_64 100% | 5.8 KiB/s | 137.0 B | 00m00s
[14/14] Removing kernel-tools-libs-0:6.15.4-200.fc 100% [==================] | 0.0 B/s | 2.0 B | 00m00s
>>> Running post-transaction scriptlet: kernel-core-0:6.15.5-200.fc42.x86_64
[14/14] Removing kernel-tools-libs-0:6.15.4-200.fc 100% [==================] | 0.0 B/s | 2.0 B | 00m00s
>>> Running post-transaction scriptlet: kernel-core-0:6.15.5-200.fc42.x86_64
>>> Non-critical error in post-transaction scriptlet: kernel-core-0:6.15.5-200.fc42.x86_64
[14/14] Removing kernel-tools-libs-0:6.15.4-200.fc 100% [==================] | 0.0 B/s | 2.0 B | 00m00s
>>> Running post-transaction scriptlet: kernel-core-0:6.15.5-200.fc42.x86_64
[14/14] Removing kernel-tools-libs-0:6.15.4-200.fc 100% [==================] | 0.0 B/s | 2.0 B | 00m00s
>>> Running post-transaction scriptlet: kernel-core-0:6.15.5-200.fc42.x86_64
>>> Non-critical error in post-transaction scriptlet: kernel-core-0:6.15.5-200.fc42.x86_64
[14/14] Removing kernel-tools-libs-0:6.15.4-200.fc 100% [==================] | 0.0 B/s | 2.0 B | 00m00s
>>> Running post-transaction scriptlet: kernel-core-0:6.15.5-200.fc42.x86_64
[14/14] Removing kernel-tools-libs-0:6.15.4-200.fc 100% [==================] | 0.0 B/s | 2.0 B | 00m00s
>>> Running post-transaction scriptlet: kernel-core-0:6.15.5-200.fc42.x86_64
>>> Non-critical error in post-transaction scriptlet: kernel-core-0:6.15.5-200.fc42.x86_64
[14/14] Removing kernel-tools-libs-0:6.15.4-200.fc 100% [==================] | 0.0 B/s | 2.0 B | 00m00s
>>> Running post-transaction scriptlet: kernel-core-0:6.15.5-200.fc42.x86_64
[14/14] Removing kernel-tools-libs-0:6.15.4-200.fc 100% [==================] | 0.0 B/s | 2.0 B | 00m00s
>>> Running post-transaction scriptlet: kernel-core-0:6.15.5-200.fc42.x86_64
>>> Non-critical error in post-transaction scriptlet: kernel-core-0:6.15.5-200.fc42.x86_64
[14/14] Removing kernel-tools-libs-0:6.15.4-200.fc 100% [==================] | 0.0 B/s | 2.0 B | 00m00s
>>> Running post-transaction scriptlet: kernel-core-0:6.15.5-200.fc42.x86_64
[14/14] Removing kernel-tools-libs-0:6.15.4-200.fc 100% [==================] | 0.0 B/s | 2.0 B | 00m00s
>>> Running post-transaction scriptlet: kernel-core-0:6.15.5-200.fc42.x86_64
>>> Non-critical error in post-transaction scriptlet: kernel-core-0:6.15.5-200.fc42.x86_64
[14/14] Removing kernel-tools-libs-0:6.15.4-200.fc 100% [==================] | 0.0 B/s | 2.0 B | 00m00s
>>> Running post-transaction scriptlet: kernel-core-0:6.15.5-200.fc42.x86_64
[14/14] Removing kernel-tools-libs-0:6.15.4-200.fc 100% [==================] | 0.0 B/s | 2.0 B | 00m00s
>>> Running post-transaction scriptlet: kernel-core-0:6.15.5-200.fc42.x86_64
>>> Non-critical error in post-transaction scriptlet: kernel-core-0:6.15.5-200.fc42.x86_64
[14/14] Removing kernel-tools-libs-0:6.15.4-200.fc 100% [==================] | 0.0 B/s | 2.0 B | 00m00s
>>> Running post-transaction scriptlet: kernel-core-0:6.15.5-200.fc42.x86_64
[14/14] Removing kernel-tools-libs-0:6.15.4-200.fc 100% [==================] | 0.0 B/s | 2.0 B | 00m00s
>>> Running post-transaction scriptlet: kernel-core-0:6.15.5-200.fc42.x86_64
>>> Non-critical error in post-transaction scriptlet: kernel-core-0:6.15.5-200.fc42.x86_64
[14/14] Removing kernel-tools-libs-0:6.15.4-200.fc 100% [==================] | 0.0 B/s | 2.0 B | 00m00s
>>> Running post-transaction scriptlet: kernel-core-0:6.15.5-200.fc42.x86_64
[14/14] Removing kernel-tools-libs-0:6.15.4-200.fc 100% [==================] | 0.0 B/s | 2.0 B | 00m00s
>>> Running post-transaction scriptlet: kernel-core-0:6.15.5-200.fc42.x86_64
>>> Non-critical error in post-transaction scriptlet: kernel-core-0:6.15.5-200.fc42.x86_64
[14/14] Removing kernel-tools-libs-0:6.15.4-200.fc 100% [==================] | 0.0 B/s | 2.0 B | 00m00s
>>> Running post-transaction scriptlet: kernel-core-0:6.15.5-200.fc42.x86_64
[14/14] Removing kernel-tools-libs-0:6.15.4-200.fc42.x86_64 100% | 0.0 B/s | 2.0 B | 02m15s
>>> Running post-transaction scriptlet: kernel-core-0:6.15.5-200.fc42.x86_64
>>> Non-critical error in post-transaction scriptlet: kernel-core-0:6.15.5-200.fc42.x86_64
>>> Scriptlet output:
>>> Sign command: /lib/modules/6.15.5-200.fc42.x86_64/build/scripts/sign-file
>>> Signing key: /var/lib/dkms/mok.key
>>> Public certificate (MOK): /var/lib/dkms/mok.pub
>>>
>>> Autoinstall of module zfs/2.3.3 for kernel 6.15.5-200.fc42.x86_64 (x86_64)
>>> Running the pre_build script................... done.
>>> Building module(s)................ done.
>>> Signing module /var/lib/dkms/zfs/2.3.3/build/module/zfs.ko
>>> Signing module /var/lib/dkms/zfs/2.3.3/build/module/spl.ko
>>> Running the post_build script... done.
>>> Installing /lib/modules/6.15.5-200.fc42.x86_64/extra/zfs.ko.xz
>>> Installing /lib/modules/6.15.5-200.fc42.x86_64/extra/spl.ko.xz
>>> Running depmod....... done.
>>>
>>> Autoinstall on 6.15.5-200.fc42.x86_64 succeeded for module(s) zfs.
>>> dracut[F]: Can't write to /boot/efi/a6670b12a88f429eb3d655e6c2797194/6.15.5-200.fc42.x86_64: Directory /boot
>>> /usr/lib/kernel/install.d/50-dracut.install failed with exit status 1.
>>>
>>> [RPM] %posttrans(kernel-core-6.15.5-200.fc42.x86_64) scriptlet failed, exit status 1
Complete!
ERROR: The zfs module does not appear to be in the updated initramfs.
Without the zfs module, the new kernel+initramfs will not be able to boot
your root-on-zfs system. You have a choice:
1. Run dnf history undo last to undo this kernel update.
2. Try running dkms autoinstall ... && kernel-install add ... This
might suffice to fix situations where kernel-core was updated without using
this script (try to avoid doing that).
3. Exit now. (You can attempt to fix the problem manually with dkms
uninstall/install and/or kernel-install remove/add.)
What is your choice [1/2/3]?:
To be noted, when i returned to they keyboard, it had returned to prompt instead of waiting for [1/2/3]..
I think for now itās best i not remove grub on main system..
dkms autoinstall ... && kernel-install add
hmm also it seems like i had forgot to install git on this test VM, so before doing the failed kernel-update above, zfs-update failed with:
# zfs-update
which: no git in (/root/.local/bin:/root/bin:/usr/sbin:/usr/local/bin:/usr/bin)
warning: failed to update zfs repo and gpg key
However, subsequentally installing git and running zfs-update again found no new updates, so that should not be the reason for the failed kernel-update..
also to note after this error, i have no 6-15-5 in /boot, and doing dkms autoinstall ... && kernel-install add does nothing.
also doing kernel-update again results in No kernel updates found, aborting ...
Weird.. i have the option of reverting this system to a point before removing grub, and before adding post_transaction="" to /etc/dkms/framework.conf.d/override.conf
I need to get this right before upgrading main system.. Lol been waiting for weeks to get KDE Plasma 6.40 installed, but first 6-15-4 resulted in dead system because of some amd firmware bug (together with the fact they now do --regenerate-all, very crazy!)
doing dnf up --refresh now pulls in a new amd-firmware package, and also 6-5-15, but that fails completely..
wow, never had this complicated fedora update..
>>> Autoinstall on 6.15.5-200.fc42.x86_64 succeeded for module(s) zfs.
>>> dracut[F]: Can't write to /boot/efi/a6670b12a88f429eb3d655e6c2797194/6.15.5-200.fc42.x86_64: Directory /boot
>>> /usr/lib/kernel/install.d/50-dracut.install failed with exit status 1.
>>>
>>> [RPM] %posttrans(kernel-core-6.15.5-200.fc42.x86_64) scriptlet failed, exit status 1
Complete!
ERROR: The zfs module does not appear to be in the updated initramfs.
Without the zfs module, the new kernel+initramfs will not be able to boot
your root-on-zfs system. You have a choice:
Hmm is this due to /etc/dkms/framework.conf.d/override.conf containing post_transaction="" ?
Hmm is this due to
/etc/dkms/framework.conf.d/override.confcontainingpost_transaction=""?
I donāt think so. What is failing is Dracut. What you overrode with that post_transaction="" line was a second run of Dracut with the --regenerate-all parameter.
āCanāt write ā¦ā sounds more like a permissions problem of some sort.
Please do let me know what you find. Iāve already added that line to exclude the shim-* packages to the install script in my GitHub repo.
Edit: I just did a full update on my laptop with post_transaction="" and the shim (and grub) packages not installed and everything seems to be working OK.
# kernel-update
Kernel update kernel-6.15.5-200.fc42.x86_64 is available.
Your current version of OpenZFS is zfs-2.3.3-1.fc42.x86_64.
Before proceeding, check https://github.com/openzfs/zfs/releases to veri-
fy that your version of OpenZFS is compatible with this kernel update.
Update to kernel-6.15.5-200.fc42.x86_64 [y/n]?: y
Updating and loading repositories:
Repositories loaded.
Package Arch Version Repository Size
Removing:
kernel x86_64 6.14.9-300.fc42 updates 0.0 B
kernel-core x86_64 6.14.9-300.fc42 updates 76.1 MiB
kernel-devel x86_64 6.14.9-300.fc42 updates 78.3 MiB
kernel-modules x86_64 6.14.9-300.fc42 updates 65.2 MiB
kernel-modules-core x86_64 6.14.9-300.fc42 updates 38.9 MiB
kernel-modules-extra x86_64 6.14.9-300.fc42 updates 2.6 MiB
Upgrading:
kernel-devel-matched x86_64 6.15.5-200.fc42 updates 0.0 B
replacing kernel-devel-matched x86_64 6.15.4-200.fc42 updates 0.0 B
Installing:
kernel x86_64 6.15.5-200.fc42 updates 0.0 B
kernel-core x86_64 6.15.5-200.fc42 updates 96.8 MiB
kernel-devel x86_64 6.15.5-200.fc42 updates 79.1 MiB
kernel-modules x86_64 6.15.5-200.fc42 updates 93.9 MiB
kernel-modules-core x86_64 6.15.5-200.fc42 updates 67.2 MiB
kernel-modules-extra x86_64 6.15.5-200.fc42 updates 4.2 MiB
Transaction Summary:
Installing: 6 packages
Upgrading: 1 package
Replacing: 1 package
Removing: 6 packages
Total size of inbound packages is 209 MiB. Need to download 209 MiB.
After this operation, 80 MiB extra will be used (install 341 MiB, remove 261 MiB).
[1/7] kernel-modules-extra-0:6.15.5-200.fc42.x86_64 100% | 3.0 MiB/s | 4.3 MiB | 00m01s
[2/7] kernel-devel-0:6.15.5-200.fc42.x86_64 100% | 5.7 MiB/s | 21.4 MiB | 00m04s
[3/7] kernel-modules-0:6.15.5-200.fc42.x86_64 100% | 5.7 MiB/s | 95.6 MiB | 00m17s
[4/7] kernel-modules-core-0:6.15.5-200.fc42.x86_64 100% | 5.0 MiB/s | 68.6 MiB | 00m14s
[5/7] kernel-core-0:6.15.5-200.fc42.x86_64 100% | 6.1 MiB/s | 19.2 MiB | 00m03s
[6/7] kernel-0:6.15.5-200.fc42.x86_64 100% | 259.6 KiB/s | 22.1 KiB | 00m00s
[7/7] kernel-devel-matched-0:6.15.5-200.fc42.x86_64 100% | 258.7 KiB/s | 22.0 KiB | 00m00s
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[7/7] Total 100% | 5.2 MiB/s | 209.1 MiB | 00m40s
Running transaction
[ 1/16] Verify package files 100% | 12.0 B/s | 7.0 B | 00m01s
[ 2/16] Prepare transaction 100% | 16.0 B/s | 14.0 B | 00m01s
[ 3/16] Installing kernel-core-0:6.15.5-200.fc42.x86_64 100% | 89.5 MiB/s | 28.5 MiB | 00m00s
[ 4/16] Installing kernel-modules-core-0:6.15.5-200.fc42.x86_64 100% | 70.8 MiB/s | 67.7 MiB | 00m01s
[ 5/16] Installing kernel-modules-0:6.15.5-200.fc42.x86_64 100% | 11.6 MiB/s | 94.3 MiB | 00m08s
[ 6/16] Installing kernel-modules-extra-0:6.15.5-200.fc42.x86_64 100% | 570.5 KiB/s | 4.2 MiB | 00m08s
[ 7/16] Installing kernel-devel-0:6.15.5-200.fc42.x86_64 100% | 3.4 MiB/s | 83.3 MiB | 00m25s
[ 8/16] Upgrading kernel-devel-matched-0:6.15.5-200.fc42.x86_64 100% | 13.5 KiB/s | 124.0 B | 00m00s
[ 9/16] Installing kernel-0:6.15.5-200.fc42.x86_64 100% | 60.5 KiB/s | 124.0 B | 00m00s
[10/16] Removing kernel-modules-extra-0:6.14.9-300.fc42.x86_64 100% | 20.0 B/s | 123.0 B | 00m06s
[11/16] Removing kernel-0:6.14.9-300.fc42.x86_64 100% | 14.0 KiB/s | 100.0 B | 00m00s
[12/16] Removing kernel-modules-0:6.14.9-300.fc42.x86_64 100% | 1.2 KiB/s | 2.3 KiB | 00m02s
[13/16] Removing kernel-modules-core-0:6.14.9-300.fc42.x86_64 100% | 5.2 KiB/s | 3.1 KiB | 00m01s
>>> Running pre-uninstall scriptlet: kernel-core-0:6.14.9-300.fc42.x86_64
>>> Finished pre-uninstall scriptlet: kernel-core-0:6.14.9-300.fc42.x86_64
>>> Scriptlet output:
>>> dkms: removing module zfs/2.3.3 for kernel 6.14.9-300.fc42.x86_64 (x86_64)
>>> Module zfs/2.3.3 for kernel 6.14.9-300.fc42.x86_64 (x86_64):
>>> Before uninstall, this module version was ACTIVE on this kernel.
>>> Deleting /lib/modules/6.14.9-300.fc42.x86_64/extra/zfs.ko.xz
>>> Deleting /lib/modules/6.14.9-300.fc42.x86_64/extra/spl.ko.xz
>>>
>>> Running depmod... done.
>>>
[14/16] Removing kernel-core-0:6.14.9-300.fc42.x86_64 100% | 298.0 B/s | 17.0 B | 00m00s
[15/16] Removing kernel-devel-0:6.14.9-300.fc42.x86_64 100% | 36.0 KiB/s | 23.3 KiB | 00m01s
[16/16] Removing kernel-devel-matched-0:6.15.4-200.fc42.x86_64 100% | 0.0 B/s | 100.0 B | 02m06s
>>> Running post-transaction scriptlet: kernel-core-0:6.15.5-200.fc42.x86_64
>>> Finished post-transaction scriptlet: kernel-core-0:6.15.5-200.fc42.x86_64
>>> Scriptlet output:
>>> Sign command: /lib/modules/6.15.5-200.fc42.x86_64/build/scripts/sign-file
>>> Signing key: /var/lib/dkms/mok.key
>>> Public certificate (MOK): /var/lib/dkms/mok.pub
>>>
>>> Autoinstall of module zfs/2.3.3 for kernel 6.15.5-200.fc42.x86_64 (x86_64)
>>> Running the pre_build script............... done.
>>> Building module(s).................. done.
>>> Signing module /var/lib/dkms/zfs/2.3.3/build/module/zfs.ko
>>> Signing module /var/lib/dkms/zfs/2.3.3/build/module/spl.ko
>>> Running the post_build script... done.
>>> Installing /lib/modules/6.15.5-200.fc42.x86_64/extra/zfs.ko.xz
>>> Installing /lib/modules/6.15.5-200.fc42.x86_64/extra/spl.ko.xz
>>> Running depmod..... done.
>>>
>>> Autoinstall on 6.15.5-200.fc42.x86_64 succeeded for module(s) zfs.
>>> dracut[W]: If you need to use bluetooth, please include it explicitly.
>>> dracut[W]: If you need to use bluetooth, please include it explicitly.
>>>
Complete!
[/root]#