You are not logged in.

#1 2013-01-01 08:15:29

Wen
Member
From: Oslo, Norway
Registered: 2008-10-02
Posts: 40

mkinitcpio hook not excuted [solved]

Dear all,

I have a cryptsetup hook in mkinitcpio.conf. It is named 'openswap'. It opens an encrypted swap partition on boot.

When the kernel is built, it is shown that 'openswap' is built in. However, when the system boots, 'openswap' is skipped. Does someone know how to solve the problem?

Thanks!

Last edited by Wen (2013-01-04 15:28:59)

Offline

#2 2013-01-01 12:56:15

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: mkinitcpio hook not excuted [solved]

This is not one of the default hooks.  Where is it from?  If you wrote it, what is in it, and do you have both the build and runtime hooks?

Last edited by Trilby (2013-01-01 12:57:23)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2013-01-01 14:57:38

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

Re: mkinitcpio hook not excuted [solved]

It still attempts to use SCRIPT="openswap" in the build function rather than add_runscript. The wiki was updated weeks ago to reflect the change (which should have happende months ago).

Offline

#4 2013-01-04 15:28:46

Wen
Member
From: Oslo, Norway
Registered: 2008-10-02
Posts: 40

Re: mkinitcpio hook not excuted [solved]

falconindy wrote:

It still attempts to use SCRIPT="openswap" in the build function rather than add_runscript. The wiki was updated weeks ago to reflect the change (which should have happende months ago).

That solved my problem. Thank you!

Offline

Board footer

Powered by FluxBB