You are not logged in.

#1 2014-06-18 17:52:46

brix
Member
Registered: 2014-05-26
Posts: 69

[SOLVED] mkinitcpio puzzle

I'm trying to include 'sd-vconsole' among the hooks in initcpio, but mkinitcpio says

Running build hook: [sd-vconsole]
/usr/lib/initcpio/install/sd-vconsole: line 37: add_systemd_unit: command not found

A function 'add_systemd_unit' exists in the 'systemd' hook install script

grep -r add_systemd_unit /usr/lib/initcpio
/usr/lib/initcpio/install/systemd:add_systemd_unit() {

but not in '/usr/lib/initcpio/functions' where I'd imagine it was intended to be found (and this patch suggests it should be).

Is this a bug, or am I simply befuddled? Despite the 'command not found' message I get

systemctl --all | grep vconsole
systemd-vconsole-setup.service   loaded    active   exited    Setup Virtual Console

but lsinitcpio shows no sign of 'vconsole' or anything clearly related.

(Of course today's kernel update to 3.15 changed nothing, simply bringing the issue to my attention again.)

Last edited by brix (2014-06-18 23:38:29)


Enough is more.

Offline

#2 2014-06-18 18:47:03

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: [SOLVED] mkinitcpio puzzle

Yes, this is a bug in the mkinitcpio package; I think you should report this one https://bugs.archlinux.org/

Offline

#3 2014-06-18 18:54:20

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED] mkinitcpio puzzle

This isn't a bug -- you need to include the systemd hook in your initramfs (and before sd-vconsole) if you want to use systemd hooks.

Offline

#4 2014-06-18 19:00:46

brix
Member
Registered: 2014-05-26
Posts: 69

Re: [SOLVED] mkinitcpio puzzle

falconindy wrote:

This isn't a bug -- you need to include the systemd hook in your initramfs (and before sd-vconsole) if you want to use systemd hooks.

(facepalm) Once explained, it's obvious. Thanks .


Enough is more.

Offline

#5 2014-06-18 23:26:50

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

Re: [SOLVED] mkinitcpio puzzle

Please mark the thread as [Solved]

Offline

#6 2014-06-19 11:39:02

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: [SOLVED] mkinitcpio puzzle

falconindy wrote:

This isn't a bug -- you need to include the systemd hook in your initramfs (and before sd-vconsole) if you want to use systemd hooks.

It would be nice if the .install would detect that; instead of throwing a 'command not found' error

Offline

Board footer

Powered by FluxBB