You are not logged in.

#1 2013-12-30 12:01:23

ezzetabi
Member
Registered: 2006-08-27
Posts: 947

[solved] Editing an initcpio hook, how to preserve changes?

I need to edit few initcpio hooks, but my changes will be overwritten on updating; what is the best practice to avoid this problem?

For example I might want to change /usr/lib/initcpio/hooks/encrypt owned by cryptsetup, when I update cryptsetup the file will be reverted.

Last edited by ezzetabi (2013-12-30 12:53:24)

Offline

#2 2013-12-30 12:40:27

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

Re: [solved] Editing an initcpio hook, how to preserve changes?

Write to /etc/initcpio/hooks/encrypt.

Offline

#3 2013-12-30 12:41:46

Thaodan
Member
From: Dortmund, Nordrein-Westfalen
Registered: 2012-04-28
Posts: 448

Re: [solved] Editing an initcpio hook, how to preserve changes?

you could make an cope to a /etc one (/etc/initcpio/hooks) and edit this


Linux odin 3.13.1-pf #1 SMP PREEMPT Wed Mar 5 21:47:28 CET 2014 x86_64 GNU/Linux

Offline

#4 2013-12-30 12:53:12

ezzetabi
Member
Registered: 2006-08-27
Posts: 947

Re: [solved] Editing an initcpio hook, how to preserve changes?

That was easy. Thanks!

Offline

Board footer

Powered by FluxBB