Just a second please!
You mean the hook I did is actually nothing? Not a solution to the Grub issue?
How and why is that if it has been actually working for me for a full month without a single issue with Grub?
No, I meant that it would be surprising if alpm hooks could solve psychological issues…
What you did is a helpful tool for you and perhaps certain others but it isn’t a universal solution to the issue that occurred in the past nor is it prevention against future grub issues.
Just curious why? What prevents it from being a universal solution for “the default “ systems, EXT4 or BTRFS, default kernel or LTS, 64 bit processor, local HDD or SSD? Or for most people who don’t necessarily have a “special” setup.
Another way round, in what cases it would not work?
Again it is time for me to learn something new.
First, I would argue that unless you frequently switch kernels, the automation isn’t really needed. There is no reason to constantly rebuild the grub config for most users on Arch-based distros where the kernel names don’t change.
Next, the problem is defining what is “normal” vs what is “special”. We tend to think that our setup/situation is the one that is normal or typical but they isn’t always the case. Personally, I would describe your use case as not at all typical but others with a similar setup would probably disagree.
There are many possible configurations and unless you have tested a wide variety of them, it is hard to say which cases work and which don’t.
As far as I humbly understand, it is not necessarily switching kernels frequently.
Snapshots due to updates (BTRFS here), a kernel update… I think require the stuff to be done (in most cases at least)
OH. I was all the time thinking I am just a simple home user. I just browse the internet, download books, read them. Maybe the only thing I count myself doing differently is just using “Resilio” to have my own cloud on this laptop and another old laptop just in case any of them dies.
And yes, I tend to get the most out of my laptop and out of Linux! (as I did OCR and such)
Well, I can’t tell, if you say so, you are the expert.
But I hope for me it will keep working as it has been doing for a month now without issues at all.
(hopefully “they” won’t come up with other “improvements” to Grub)
I added a script to both kernel-install-mkinitcpio and kernel-install-for-dracut which makes it easy to regenerate your initrds. You can simply run reinstall-kernels now.
Err…probably? I haven’t reviewed it in a while. The installer uses the kernel-install method with the package kernel-install-for-dracut which is in our repos. If you prefer to stick with mkinitcpio, the package kernel-install-mkinitcpio is in AUR and is nearly identical except for using mkinitcpio instead of dracut.
I think your script and/or tutorial are missing out on something rather important, especially for older/cheaper hardware that does not receive BIOS-updates. You don’t load the CPU-firmware files intel-ucode.img or amd-ucode.img.
At least the Intel-one is present in the Arch config: https://wiki.archlinux.org/title/systemd-boot#Adding_loaders - the AMD one would be a simple renaming of intel to amd:
esp/loader/entries/arch.conf
title Arch Linux
linux /vmlinuz-linux
initrd /intel-ucode.img
initrd /initramfs-linux.img
options root=“LABEL=arch_os” rw
Also, I tried to find a config option but did not succeed so far, is systemd-boot able to save the last used boot entry and boot that? I have 2-3 kernels and Windows installed, and my standard use-case is that it should boot the last used boot-entry, not a specific default one…
sudo bootctl set-default @current should set the currently booted kernel as default.
I guess it needs to be repeated if one boots into another kernel and wants that as default unless there is a similar way to make it permanent like in grub with:
yeah, but that won’t be possible for Windows and still would need manual intervention on Linux. I am exactly looking for a config option like the one you quoted from grub (I have set that there)
Right.
Personally, in my limited time of having used systemd-boot, I haven’t come across such a configuration. It’s not my use case either for that matter.
Perhaps more seasoned systemd-boot users will chime in with some input.