linux-surface/pkg/fedora/kernel-surface/files
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
..
.gitkeep pkg: fedora: Add new package build scripts for building patched kernels 2023-06-03 14:41:53 +02:00
90-linux-surface-default-watchdog.preset pkg: fedora: Move the watchdog service to its own package 2023-06-15 23:05:39 +02:00
linux-surface-default-watchdog.path pkg: fedora: Move the watchdog service to its own package 2023-06-15 23:05:39 +02:00
linux-surface-default-watchdog.py pkg: fedora: Update kernel-watchdog service 2024-02-06 23:25:26 +01:00
linux-surface-default-watchdog.service pkg: fedora: Update kernel-watchdog service 2024-02-06 23:25:26 +01:00