( 8/10) Check if user should be informed about rebooting

Yes, I did.
Now the odd thing is that I just got the update to mesa and at the end I got the pop-up.
However not when I reinstall the kernel which I tried again just now.
I only get:

(5/5) Check if user should be informed about rebooting after certain system package upgrades.

in the terminal as before.

Now I reinstalled mesa again and I got:

(2/2) Check if user should be informed about rebooting after certain system package upgrades.
==> INFO: Reboot is recommended due to the upgrade of core system package(s).

and the pop-up notification.

Only thing that comes to mind is that you aren’t updating the kernel you’re actually using… is that possible? Mine, for instance, is
Linux5.14.6-zen1-1-zen - and I have to load it off the slowest repo in the Arch universe (for zfs reasons), so I used mesa instead to trigger it. It is the first time I recall seeing a ‘suggestion’ in the terminal too (I used to just get the popup).

I am not updating but re-installing the currently running to trigger the hook.

uname -r 
5.14.6-zen1-1-zen
sudo pacman -S linux-zen 
warning: linux-zen-5.14.6.zen1-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Package (1)      Old Version    New Version    Net Change

extra/linux-zen  5.14.6.zen1-1  5.14.6.zen1-1    0.00 MiB

I did it with an -Syu… that should do it. If it isn’t an update, I don’t think it ‘triggers’.

Edit: Here’s the hook -

reboot hook
[Trigger]
Operation = Upgrade
Type = Package
Target = amd-ucode
Target = intel-ucode
Target = btrfs-progs
Target = cryptsetup
Target = linux
Target = linux-hardened
Target = linux-lts
Target = linux-zen
Target = linux-firmware
Target = nvidia
Target = nvidia-dkms
Target = nvidia-*xx-dkms
Target = nvidia-*xx
Target = nvidia-*lts-dkms
Target = nvidia*-lts
Target = mesa
Target = systemd*
Target = wayland
Target = egl-wayland
Target = xf86-video-*
Target = xorg-server*
Target = xorg-fonts*

[Action]
Description = Check if user should be informed about rebooting after certain system package upgrades.
When = PostTransaction
Depends = libnotify
NeedsTargets
Exec = /usr/bin/eos-reboot-required2

Now I did sudo pacman -Syu linux-zen but still no pop-up:

==> Image generation successful
(5/5) Check if user should be informed about rebooting after certain system package upgrades.

This line

==> INFO: Reboot is recommended due to the upgrade of core system package(s).

that I got after update to mesa is missing in the terminal and no pop-up.

You got me - linux-zen is in the list of triggers! I have no idea what could be missing now. Sorry!

1 Like

No worries!
I’ll wait and see when there is a “real” update to the kernel. But i don’t think that should play any role. Don’t know.

It shouldn’t - but then again if it works on mesa, it should work on linux-zen too! Maybe you have to hold your mouth differently… :grin:

1 Like

I guess linux-zen wants to be a secret… :stuck_out_tongue_winking_eye:

1 Like

@manuel Here is an interesting one: I just did an update which had the latest Linux kernel. I am running on lts so no reboot was needed but I got this:

==> Generating module dependencies
==> Creating xz-compressed initcpio image: /boot/initramfs-linux-fallback.img
==> Image generation successful
(6/6) Check if user should be informed about rebooting after certain system package upgrades.
error: command failed to execute correctly

Not sure what happened there. Not a problem obviously but it seems it needs investigating… :man_shrugging:

1 Like

you should update your mkinitcpio.conf … arch now uses COMPRESSION="zstd"
(not that this is the reason for the error)
And yes same error here:

==> Creating zstd-compressed initcpio image: /efi/XXX/5.14.7-arch1-1/initrd-fallback
==> Image generation successful
(7/9) Installing mkinitcpio presets...
:: Generating /etc/mkinitcpio.d/linux.preset
(8/9) Check if user should be informed about rebooting after certain system package upgrades.
Fehler: Befehl konnte nicht korrekt ausgeführt werden

That’s amazing!
Now that everbody is getting the error message, it seems to be finally working on my end!
I just had an update to my running kernel (linux-zen) and at the end of the process in terminal:

==> Image generation successful
(7/7) Check if user should be informed about rebooting after certain system package upgrades.
==> INFO: Reboot is recommended due to the upgrade of core system package(s).

with the desktop notification pop-up. :sweat_smile:

Please don’t change anything! :wink:

$ pacman -Qi eos-hooks
Name            : eos-hooks
Version         : 1.4.15-1
Description     : EndeavourOS pacman hooks
Architecture    : any
URL             : https://github.com/endeavouros-team/PKGBUILDS/tree/master/eos-hooks
Licenses        : GPL3
Groups          : None
Provides        : None
Depends On      : libnotify
Optional Deps   : None
Required By     : None
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 5.60 KiB
Packager        : EndeavourOS <info@endeavouros.com>
Build Date      : Wed 22 Sep 2021 01:35:41 PM CEST
Install Date    : Thu 23 Sep 2021 09:52:58 AM CEST
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature
1 Like

Thanks for the info @joekamprad mkinitcpio.conf now updated. :smiley:

1 Like

Look here:

Sorry… :wink:

2 Likes

Mine are still working fine?

1 Like

You are so lucky… :star_struck:

I’m just not understanding why because i never got this problem? I have 5 different installs and theay all seem to be functioning correctly.

1 Like

To be honest, I’m a bit puzzled about the issue of this thread too.

It used to work here as well. But new installs had this problem. So the only reason I can think of right now is some change in some library or kernel, but I really don’t know where.

Anyway, for now these hook problems seem to have been solved.
(Famous last words. :wink:)

1 Like

Oh, you found a new problem! :crazy_face:
Upgrading spotify should not cause this notification… :wink:

No. The notification was up before the AUR updates show on the screen. That’s just the end of the updates in the terminal. :wink:

1 Like