You are not logged in.

#1 2016-07-30 21:27:35

dcbdbis
Member
From: Aurora, Colorado
Registered: 2004-09-10
Posts: 247

[SOLVED] SystemD 230 vs 231

Good Afternoon Fellow Archers,

pacman -Syu has installed systemd 231. However on boot, it still tells me it is version 230.

The Arch Wiki states nothing about anything special that has to be done between versions.

Does anyone have any idea what is going on?

Thanks!

Dave

x64 system, 32 Gb ram, FX-8350 CPU, Gigabyte GA-990XA-UD3 Mb.

Last edited by dcbdbis (2016-07-30 21:36:59)

Offline

#2 2016-07-30 21:31:08

headkase
Member
Registered: 2011-12-06
Posts: 1,840

Re: [SOLVED] SystemD 230 vs 231

SystemD is part of your initial RAM file-system.  When that boots it hands itself over to the system version of SystemD.  To update the SystemD there, do:

sudo mkinitcpio -p linux

Where "linux" is the kernel you're using.  Most of the time it doesn't make any difference what version of SystemD is in your initramfs, but there have been rare cases where it has caused issues.

Offline

#3 2016-07-30 21:33:12

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 8,855
Website

Re: [SOLVED] SystemD 230 vs 231

Not a system administration issue, moving to NC.


Sakura:-
Mobo: MSI X299 TOMAHAWK ARCTIC // Processor: Intel Core i7-7820X 3.6GHz // GFX: nVidia GeForce GTX 970 // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 5x 1TB HDD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#4 2016-07-30 21:38:19

dcbdbis
Member
From: Aurora, Colorado
Registered: 2004-09-10
Posts: 247

Re: [SOLVED] SystemD 230 vs 231

Hello headkase,

Thank you for the reply. I updated both my linux and linux-ck initcpio's, and the initial boot message now matches the installed version.

Thank You!

Dave

Offline

#5 2016-07-30 22:12:23

headkase
Member
Registered: 2011-12-06
Posts: 1,840

Re: [SOLVED] SystemD 230 vs 231

Right on, you're welcome.  smile

Offline

#6 2016-07-30 22:17:50

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 27,494
Website

Re: [SOLVED] SystemD 230 vs 231

Pedantry post incoming...

It is systemd:

Yes, it is written systemd, not system D or System D, or even SystemD. And it isn't system d either. Why? Because it's a system daemon, and under Unix/Linux those are in lower case, and get suffixed with a lower case d. And since systemd manages the system, it's called systemd. It's that simple. But then again, if all that appears too simple to you, call it (but never spell it!) System Five Hundred since D is the roman numeral for 500 (this also clarifies the relation to System V, right?). The only situation where we find it OK to use an uppercase letter in the name (but don't like it either) is if you start a sentence with systemd. On high holidays you may also spell it sÿstëmd.


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

#7 2016-07-30 23:18:42

headkase
Member
Registered: 2011-12-06
Posts: 1,840

Re: [SOLVED] SystemD 230 vs 231

SyStEmD it is then! wink tongue smile

Offline

#8 2016-07-31 02:28:43

rdeckard
Wiki Maintainer
Registered: 2015-01-28
Posts: 135

Re: [SOLVED] SystemD 230 vs 231

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 "/usr/share/libalpm/hooks"; make sure filename has .hook suffix.  See the alpm-hooks manpage.

Last edited by rdeckard (2016-07-31 02:36:35)

Offline

#9 2016-07-31 02:46:19

eschwartz
Trusted User/Bug Wrangler
Registered: 2014-08-08
Posts: 2,853

Re: [SOLVED] SystemD 230 vs 231

Or perhaps `mkinitcpio -P` for all the people who use a different kernel. wink


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#10 2016-07-31 03:00:17

dcbdbis
Member
From: Aurora, Colorado
Registered: 2004-09-10
Posts: 247

Re: [SOLVED] SystemD 230 vs 231

Excellent idea!

Thank you for the tip.

Dave

Offline

#11 2016-07-31 06:59:16

waitnsea
Member
From: France
Registered: 2013-02-10
Posts: 33

Re: [SOLVED] SystemD 230 vs 231

rdeckard wrote:

Put it in a new file in "/usr/share/libalpm/hooks"; make sure filename has .hook suffix.  See the alpm-hooks manpage.

Hello,
Couldn't be better to place it in /etc/pacman.d/hooks/ directory ?


LENOVO Y700-341SH - GeForce GTX 750 Ti

Offline

#12 2016-07-31 07:17:05

TheChickenMan
Member
From: United States
Registered: 2015-07-25
Posts: 353

Re: [SOLVED] SystemD 230 vs 231

waitnsea wrote:
rdeckard wrote:

Put it in a new file in "/usr/share/libalpm/hooks"; make sure filename has .hook suffix.  See the alpm-hooks manpage.

Hello,
Couldn't be better to place it in /etc/pacman.d/hooks/ directory ?

Both locations will work. /usr/share/libalpm/hooks is the location where packages install hook files. /etc/pacman.d/hooks is reserved for user-created hook files.


If quantum mechanics hasn't profoundly shocked you, you haven't understood it yet.
Niels Bohr

Offline

#13 2016-07-31 14:47:10

philo
Member
From: indoors
Registered: 2015-01-26
Posts: 77

Re: [SOLVED] SystemD 230 vs 231

The OP's question is raised after every systemd upgrade.

Could that hook  be mentioned in the relevant wiki by a qualified contributor?

Offline

#14 2016-07-31 20:42:32

rdeckard
Wiki Maintainer
Registered: 2015-01-28
Posts: 135

Re: [SOLVED] SystemD 230 vs 231

philo wrote:

The OP's question is raised after every systemd upgrade.

Could that hook  be mentioned in the relevant wiki by a qualified contributor?

Done: https://wiki.archlinux.org/index.php/Sy … ge_version

Offline

#15 2016-08-02 02:04:22

WFV
Member
From: right here right now ℶ
Registered: 2013-04-23
Posts: 242

Re: [SOLVED] SystemD 230 vs 231

Eschwartz wrote:

Or perhaps `mkinitcpio -P` for all the people who use a different kernel. wink

Do you set the Depends = to the custom linux kernel or just leave it as is in rdeckard's hook?
Thanks

Offline

#16 2016-08-02 02:29:29

eschwartz
Trusted User/Bug Wrangler
Registered: 2014-08-08
Posts: 2,853

Re: [SOLVED] SystemD 230 vs 231

All you need is mkinitcpio. The "-P, --allpresets" switch will simply iterate over all available /etc/mkinitcpio.d/ presets.
It doesn't care whether they are installed by a package or whether expected packages are missing, it simply looks for mkinitcpio preset configurations and runs them all.

The purpose of "Depends" in a pacman hook is for making sure hooks gracefully know when they are incapable of being run due to missing packages, typically the package that provides the binary being run. Of course if you decide for unknown reasons to hardcode the kernel (any kernel) into your mkinitcpio call then you will have to make sure your hardcoded kernel preset is available... but the whole point of my post is that you shouldn't be hardcoding the kernel. Just do them all.


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

Board footer

Powered by FluxBB