[arch-general] change in hooks recently?
Hi, I have this pacman hook: ++++ % cat /etc/pacman.d/hooks/systemd_mkinitcpio_regenerate.hook [Trigger] Operation = Install Operation = Upgrade Type = Package Target = systemd [Action] When = PostTransaction Exec = /usr/bin/mkinitcpio -p linux ++++ It used to trigger only when upgrading the "systemd" package, for a post transaction. However now it's triggering on every system upgrade, which is not what I was expecting... Thanks, -- Javier
On 12/30/2016 04:14 PM, Javier Vasquez via arch-general wrote:
I have this pacman hook: [...] It used to trigger only when upgrading the "systemd" package, for a post transaction. However now it's triggering on every system upgrade, which is not what I was expecting...
That is because the kernel now comes with its own, better hook. -- Eli Schwartz
On Fri, Dec 30, 2016 at 3:17 PM, Eli Schwartz via arch-general <arch-general@archlinux.org> wrote: That is because the kernel now comes with its own, better hook.
I see, you mean this one I'd guess: https://git.archlinux.org/svntogit/packages.git/plain/trunk/99-linux.hook?h=... Right? Well, it's still missing systemd, :-)... Hmm, so btrfs-progs includes initcpio hooks, how would I guess? jaja. Well, it means now I'll see more mkinitcpio runs than before, :-) Plus the one I added, :-) Thanks a lot, -- Javier
On 12/30/2016 04:45 PM, Javier Vasquez via arch-general wrote:
On Fri, Dec 30, 2016 at 3:17 PM, Eli Schwartz via arch-general <arch-general@archlinux.org> wrote: That is because the kernel now comes with its own, better hook.
I see, you mean this one I'd guess:
https://git.archlinux.org/svntogit/packages.git/plain/trunk/99-linux.hook?h=...
Right? Well, it's still missing systemd, :-).
Can't think why you'd think so. [eschwartz@arch]$ pacman -Ql systemd|grep /usr/lib/initcpio systemd /doesnt/exist/according/to/Javier/Vasquez systemd /usr/lib/initcpio/ # Eli systemd /usr/lib/initcpio/hooks/ # Schwartz systemd /usr/lib/initcpio/hooks/udev # and systemd /usr/lib/initcpio/install/ # his systemd /usr/lib/initcpio/install/systemd # wild systemd /usr/lib/initcpio/install/udev # imagination -- Eli Schwartz
On 12/30/2016 04:45 PM, Javier Vasquez via arch-general wrote: I see, you mean this one I'd guess:
https://git.archlinux.org/svntogit/packages.git/plain/trunk/99-linux.hook?h=...
Right? Well, it's still missing systemd, :-).
On Sat, Dec 31, 2016 at 5:16 PM, Eli Schwartz via arch-general <arch-general@archlinux.org> wrote:
Can't think why you'd think so.
Jaja, I didn't inspect the files owned by systemd. My bad, :-)
[eschwartz@arch]$ pacman -Ql systemd|grep /usr/lib/initcpio systemd /doesnt/exist/according/to/Javier/Vasquez systemd /usr/lib/initcpio/ # Eli systemd /usr/lib/initcpio/hooks/ # Schwartz systemd /usr/lib/initcpio/hooks/udev # and systemd /usr/lib/initcpio/install/ # his systemd /usr/lib/initcpio/install/systemd # wild systemd /usr/lib/initcpio/install/udev # imagination
I see... So systemd is also covered, and there's no need for my hook anymore. That's great ! Thanks a lot, -- Javier
On 12/31/2016 07:32 PM, Javier Vasquez via arch-general wrote:
Jaja, I didn't inspect the files owned by systemd. My bad, :-)
Or, if you just care which packages have files there but not what files those are: pacman -Qo /usr/lib/initcpio
I see... So systemd is also covered, and there's no need for my hook anymore. That's great !
The linux package maintainer did this specifically so people would never have to remember to do it by hand (or use custom hooks) anymore. ;) AFAIK you should never end up in a position where the initramfs needs to be updated but files in /usr/lib/initcpio weren't updated/installed. -- Eli Schwartz
participants (2)
-
Eli Schwartz
-
Javier Vasquez