You are not logged in.

#1 2013-08-01 19:02:51

bpont
Banned
Registered: 2010-03-24
Posts: 161

ERROR: Hook 'systemd' cannot be found

Here are my current /etc/mkinitcpio.conf hooks:

HOOKS="base systemd autodetect modconf block filesystems keyboard keymap fsck"

According to the mkinicpio wiki, the systemd hook is meant to replace the 'base', 'usr', 'udev' and 'timestamp' hooks, though it is suggested in the wiki to retain the 'base' hook (before the systemd hook) to ensure that a rescue shell exists on your initramfs.

Then when I 'mkinitcpio -p linux' I get:

ERROR: Hook 'systemd' cannot be found

I searched but couldn't find any info about this specific error on the web, nor got any help on Arch IRC, so I'm trying here now.  Hope someone can help.

Offline

#2 2013-08-01 19:08:49

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,413

Re: ERROR: Hook 'systemd' cannot be found

You need to be using systemd 206, which is in [testing].

Edit: Whoa!  I'm just slightly faster than tomegun and jasonwryan!

Last edited by WonderWoofy (2013-08-01 19:10:28)

Offline

#3 2013-08-01 19:09:11

tomegun
Developer
From: France
Registered: 2010-05-28
Posts: 661

Re: ERROR: Hook 'systemd' cannot be found

The hook will be shipped with the systemd package. The systemd version in [core] does not yet contain the hook, but the one in [testing] does.

Offline

#4 2013-08-01 19:09:47

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 28,895
Website

Re: ERROR: Hook 'systemd' cannot be found

Are you using [testing]?


# edit. Meh. Bronze...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2013-08-01 19:15:43

bpont
Banned
Registered: 2010-03-24
Posts: 161

Re: ERROR: Hook 'systemd' cannot be found

No, I'm not using [testing], so I'll revert back to the old hooks I used until the supported version moves to [core].  I hope there's some sort of announcement for it in Arch News when the time comes.

Offline

#6 2013-08-01 19:21:55

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,413

Re: ERROR: Hook 'systemd' cannot be found

There is an announcement in the pacman output.  It is included in the install script.

pacman wrote:

The "timestamp" hook for mkinitcpio no longer exists. If you used
this hook, you must remove it from /etc/mkinitcpio.conf. A "systemd"
hook has been added which provides this functionality, and more.

and

mkinitpcio -H systemd wrote:

==> Help for hook 'systemd':
This will install a basic systemd setup in your initramfs, and is meant to
replace the 'base', 'usr', 'udev' and 'timestamp' hooks. Other hooks would need
to be ported, and may not work as intended. You also may wish to still include
the 'base' hook (before this hook) to ensure that a rescue shell exists on your
initramfs.

Offline

#7 2013-08-01 19:28:50

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: ERROR: Hook 'systemd' cannot be found

For a less subtle reminder, you could put systemd in IgnorePkg. That way you'll get a warning

# pacman -Syu
...
:: Starting full system upgrade...
warning: systemd: ignoring package upgrade ...

when the new version comes along.

Just make sure you heed the warning...


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#8 2013-08-01 19:40:20

bpont
Banned
Registered: 2010-03-24
Posts: 161

Re: ERROR: Hook 'systemd' cannot be found

alphaniner wrote:

For a less subtle reminder, you could put systemd in IgnorePkg. That way you'll get a warning

# pacman -Syu
...
:: Starting full system upgrade...
warning: systemd: ignoring package upgrade ...

when the new version comes along.

Just make sure you heed the warning...

Great idea...thanks

Offline

#9 2013-08-02 01:54:44

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: ERROR: Hook 'systemd' cannot be found

WonderWoofy wrote:

Edit: Whoa!  I'm just slightly faster than tomegun and jasonwryan!

Cuz' you're all that!

Last edited by skottish (2013-08-02 01:55:20)

Offline

Board footer

Powered by FluxBB