You are not logged in.

#1 2024-04-16 08:48:58

abarbarian
Member
Registered: 2012-03-11
Posts: 30

Pacman hook for --Systemd on boot not the same as installed ? -SOLVED-

I am doing a fresh install of Arch. Going through all my notes in zim at the same time to tidy them up. I have an entry for a packman hook which I got from the wiki way back and have been using it ever since.

https://bbs.archlinux.org/viewtopic.php?id=215411

On checking the wiki there is no longer any mention of this hook, not in PACMAN or SYSTEMD.
This I believe is the wiki entry I followed,

Systemd version printed on boot is not the same as installed package version

You need to regenerate your initramfs and the versions should match.
Tip: A pacman hook can be used to automatically regenerate the initramfs every time systemd is upgraded. See this forum thread and Pacman#Hooks.


This might be a good pacman hook so that you don't have to manually remember this everytime systemd is updated:

[Trigger]
Operation = Upgrade
Type = Package
Target = systemd

[Action]
Description = Generating initramfs...
Depends = linux
When = PostTransaction
Exec = /usr/bin/mkinitcpio -p linux 


Put it in a new file in /etc/pacman.d/hooks  make sure filename has .hook suffix.

Is this still necessary ?
If it is why has it gone from the wiki ?

Thanks in advance for any help on this. ;-)

Last edited by abarbarian (2024-04-17 10:18:39)

Offline

#2 2024-04-16 11:34:48

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,831

Re: Pacman hook for --Systemd on boot not the same as installed ? -SOLVED-

The normal systemd/mkinitcpio package already does this now, IIRC (not on my system to formally verify but I'm fairly sure).

Last edited by V1del (2024-04-16 11:36:09)

Offline

#3 2024-04-17 10:13:57

abarbarian
Member
Registered: 2012-03-11
Posts: 30

Re: Pacman hook for --Systemd on boot not the same as installed ? -SOLVED-

V1del wrote:

The normal systemd/mkinitcpio package already does this now, IIRC (not on my system to formally verify but I'm fairly sure).

You are correct,

https://archlinux.org/news/mkinitcpio-h … microcode/

Many thanks for the reply. ;-)

Offline

Board footer

Powered by FluxBB