Add compatibility for hosts using dracut to be able to generate images
As discussed in FS#68173 using a system that uses e.g. dracut for initrd generation and disables the mkinitcpio pacman hooks via /etc/pacman.d/hooks/
on the host (via symlinks to /dev/null
) it is not possible to successfully generate an ISO, as the initrds are not generated.
After some discussion on IRC it seems that we have two solutions for this problem:
- explicitely set
HookDir
to/usr/share/libalpm/hooks/
in the pacman.conf of the profile(s) - implicitely overwrite
HookDir
to be/usr/share/libalpm/hooks/
in mkarchiso for any profile's pacman.conf
The first has the upside of being explicit but the downside of requiring the pacman.conf of all profiles to be set. The second has the upside of applying to all pacman.conf files of all profiles but the downside of being implicit.