FS#37796 - [mkinitcpio] should look for hooks local-machine friendly places

Attached to Project: Arch Linux
Opened by Anonymous (reallybmn) - Saturday, 16 November 2013, 20:05 GMT
Last edited by Dave Reisner (falconindy) - Tuesday, 24 December 2013, 21:07 GMT
Task Type Feature Request
Category Arch Projects
Status Closed
Assigned To Dave Reisner (falconindy)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Currently mkinitcpio looks for hooks/scripts only in /usr/lib/initcpio, forcing you to place custom hooks into that directory as well.
For ease of handling stuff like maintenance, backups, etc. it would be better if mkinitcpio allowed hooks/scripts to be installed in a more fhs-friendly manner, eg. the obvious /usr/local/lib/.. or /etc/mkinitcpio.d/..
This task depends upon

Closed by  Dave Reisner (falconindy)
Tuesday, 24 December 2013, 21:07 GMT
Reason for closing:  Fixed
Additional comments about closing:  mkinitcpio 16
Comment by Dave Reisner (falconindy) - Sunday, 17 November 2013, 16:37 GMT
Can you describe your use case? What local hooks are you using which mkinitcpio doesn't support.

I'm not too keen on this because of some implications, but it's a trivial change.

P.S. FHS isn't even close to relevant here.
Comment by Anonymous (reallybmn) - Sunday, 17 November 2013, 17:22 GMT
I am using a Smartcard to unlock decrypted root devices.
It's a somewhat specific progress so I would not expect mkinitcpio to supply any hooks to cover this use case.
In a more general sense, I don't think supplying all hooks or scripts ever conceivable beeing distributed or supported by OS packages is a feasable assumption, so this ticket should be valid anyways.

Point taken on the FHS.
Comment by Gerardo Exequiel Pozzi (djgera) - Sunday, 01 December 2013, 06:47 GMT
  • Field changed: Summary (mkinitcpio should look for hooks local-machine friendly places → [mkinitcpio] should look for hooks local-machine friendly places)
I this feature gets implemented, I will use it for archiso. Currently, I manually copy initcpio stuff to /usr/lib/initcpio instead of something "/etc/..." (these files are untracked by pacman)
Comment by Dave Reisner (falconindy) - Thursday, 12 December 2013, 15:36 GMT

Loading...