.conf.d files are silently ignored when ALL_config is set
After about an hour of digging in the code, it turns out that ALARM not using my drop-ins is due to the fact that linux-rpi-16k.preset sets ALL_config
, which means that all drop-ins will be ignored.
Downstream PR here: https://github.com/archlinuxarm/PKGBUILDs/pull/2029
This behavior is undocumented in the examples:
- https://gitlab.archlinux.org/archlinux/mkinitcpio/mkinitcpio/-/blob/8b32bbe2588e4e90bcd081ba6af79152cc7bc18d/mkinitcpio.d/hook.preset#L3
- https://gitlab.archlinux.org/archlinux/mkinitcpio/mkinitcpio/-/blob/8b32bbe2588e4e90bcd081ba6af79152cc7bc18d/mkinitcpio.d/example.preset?ref_type=heads#L10
And undocumented in the output:
- If variable is set, add the -c flag and remove "default" from the info string https://gitlab.archlinux.org/archlinux/mkinitcpio/mkinitcpio/-/blob/8b32bbe2588e4e90bcd081ba6af79152cc7bc18d/mkinitcpio#L651-657
- -c flag disables drop-ins https://gitlab.archlinux.org/archlinux/mkinitcpio/mkinitcpio/-/blob/8b32bbe2588e4e90bcd081ba6af79152cc7bc18d/mkinitcpio#L827-830
I think at minimum the regular output should explicitly mention that drop-ins are disabled for this preset due to setting this variable.
Edited by Martin Rys