I run EndeavourOS on this machine and vanilla Arch on another. One thing I like to do is implement features I like on EndeavourOS on my Arch machine. While there is a simple reboot-checker script in the AUR, I’m finding that it always suggests a reboot because I have both the Linux and Linux-LTS kernels installed. Maybe I can fix the script, but whatever EndeavourOS is doing doesn’t seem to have that issue. Also, I’m having a hard time finding out how the script is called as part of an update.
Is there any documentation that explains how it works?
Ok, found them…and went through the ArchWiki on how pacman hooks work. What you have is a lot better than that little script I found in the AUR. Looks like eos-reboot-required2 is also checking to see if the update was on the currently running kernel.
Reading up a little on pacman in the ArchWiki, I think I understand why Arch does not already have a “recommend reboot” utility. It seems those devs are quite conservative and suggest rebooting after every “pacman -Syu”. I think that may be a little over-conservative but, I’ll acknowledge I’m not the expert here