On Sat, Mar 09, 2024 at 12:52:15PM +0100, Óscar García Amor wrote:
> Hello folks,
> 
> With the latest update of mkinitcpio when running `mkinitcpio -P` you
> get the following warning:
> 
> ```
> WARNING: Deprecated option 'ALL_microcode' found. Update
> '/etc/mkinitcpio.d/linux.preset' to use the 'microcode' hook instead.
> ```
> 
> It is clear to me that this is because that option must be removed from
> the `/etc/mkinitcpio.d/linux.preset` file, but what surprises me is the
> following:
> 
> ```
> % pacman -Qo /etc/mkinitcpio.d/linux.preset
> error: No package owns /etc/mkinitcpio.d/linux.preset
> ```
> 
> Who generated the `linux.preset`? It is supposed to have been the
> `linux` package but right now I can't find how this file was generated.

They are generated by a libalpm hook that templates the preset file.

Template: 
https://gitlab.archlinux.org/archlinux/mkinitcpio/mkinitcpio/-/blob/master/mkinitcpio.d/hook.preset?ref_type=heads

The hook: 
https://gitlab.archlinux.org/archlinux/mkinitcpio/mkinitcpio/-/blob/master/libalpm/scripts/mkinitcpio?ref_type=heads

-- 
Morten Linderud
PGP: 9C02FF419FECBE16

Attachment: signature.asc
Description: PGP signature

Reply via email to