linux-surface/pkg
Dorian Stoll 5241998eee
pkg: fedora: Update kernel-watchdog service
It seems that I just can't stop finding weird btrfs setups that break
the current script.

When you use btrfs with a default subvolume, GRUB will use normal paths,
like on ext4. So instead of /@/boot/vmlinuz you have /boot/vmlinuz.

The issue is that grub2-mkrelpath doesn't know about that. The script
would have to parse the GRUB configuration and fstab, to figure out
if btrfs is used with a default subvolume, and then add a flag to the
command depending on that.

However, instead of adding yet another workaround, let's just forget
about grubby and do what we want to do ourselves. Because, as it turns
out, not taking a weird detour over the path that GRUB uses to load the
kernel makes everything much easier.

Since this means that we are dealing with even more filepath and string
mangling, I decided to rewrite the script in python. It would work fine
in bash, but it would be even more spaghetti code that I don't really
want to write. And python is always available in Fedora anyway,
because DNF is written in it.
2024-02-06 23:25:26 +01:00
..
arch pkg: arch: Update to 6.7.2 2024-01-29 19:54:31 +01:00
debian pkg: debian: Update to 6.7.2 2024-01-29 19:54:31 +01:00
fedora pkg: fedora: Update kernel-watchdog service 2024-02-06 23:25:26 +01:00
keys Update the GPG and secureboot keys 2020-01-20 22:22:32 +01:00