Jump to content

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


abarbarian

Recommended Posts

abarbarian

I posted this at the Arch Forums today. It is self explanatory.

 

Quote

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 time I posted at the forums just a short while ago I had a very nice and helpful reply. 😎

Link to comment
Share on other sites

securitybreach

The problem with taking notes on archlinux is that things change so fast that the notes are quickly outdated

Link to comment
Share on other sites

abarbarian
1 hour ago, securitybreach said:

The problem with taking notes on archlinux is that things change so fast that the notes are quickly outdated

 

Sort of true. Quite a lot of things stay pretty much the same but a lot of stuff changes out of all recognition too.

 

I am still looking for an answer to my query though. 😎

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...