Re: Small question about mkinitcpio and linux.preset

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux