informant is not the first pre-transaction hook that gets run
Closed this issue · 2 comments
codeclem commented
I noticed this the last time I went to update:
:: Running pre-transaction hooks...
(1/3) Removing linux initcpios...
(2/3) Remove DKMS modules
==> dkms remove acpi_call/1.1.0 -k 5.5.3-arch1-1
==> dkms remove vboxhost/6.1.2_OSE -k 5.5.3-1-ck-broadwell
==> dkms remove acpi_call/1.1.0 -k 5.5.3-1-ck-broadwell
==> dkms remove vboxhost/6.1.2_OSE -k 5.5.3-arch1-1
(3/3) Checking Arch News ...
sshd needs restarting after upgrading to openssh-8.2p1
Mon, 17 Feb 2020 01:35:04 +0000
After upgrading to openssh-8.2p1, the existing SSH daemon will be unable to accept
new connections. (See [FS#65517][1].) When upgrading remote hosts, please make sure
to restart the SSH daemon using `systemctl restart sshd` right after running `pacman
-Syu`. If you are upgrading to openssh-8.2p1-3 or higher, this restart will happen
automatically.
[1]: https://bugs.archlinux.org/task/65517
error: command failed to execute correctly
error: failed to commit transaction (failed to run transaction hooks)
Errors occurred, no packages were upgraded.
Error installing repo packages
So stuff already starts happening before the hook gets a chance to run and stop things. So potentially it could fail to serve its purpose -- to prevent any changes before the user has a chance to read any relevant news. Is there a way to make sure the informant hook is run first?
bradford-smith94 commented
I pushed a new AUR version (0.2.0-2
), this renames the installed hook to 00-informant.hook
. The leading zeros should mean it comes first in the ordering of pacman hooks.
codeclem commented
Thanks!