Skip to content

shutdown: move hook selection to config file

Markus Weippert requested to merge gekmihesg/mkinitcpio:shutdown into master

This allows other packages to append their own hooks:

w+ /etc/initramfs/mkinitcpio-shutdown.conf - - - - HOOKS+=(extra-shutdown)\n

Currently, plymouth overwrites the ExecStart= command of mkinitcpio-generate-shutdown-ramfs.service (archlinux/packaging/packages/plymouth/-/blob/main/mkinitcpio-generate-shutdown-ramfs-plymouth.conf). This is broken since !325 (merged). Instead, this would allow the plymouth package to install /usr/lib/tmpfiles.d/plymouth.conf with

w+ /etc/initramfs/mkinitcpio-shutdown.conf - - - - HOOKS+=(plymouth-shutdown)\n
Edited by Markus Weippert

Merge request reports