Re: Small question about mkinitcpio and linux.preset

2024-03-09 Thread Abraham S.A.H.
> (only created by the install file of a certain package).

Many thanks, I did know about this case.

--
Best Regards,
Abraham
Sent with Tutanota; https://tuta.com


Re: Small question about mkinitcpio and linux.preset

2024-03-09 Thread Christian Heusel
On 24/03/09 06:08PM, Abraham S.A.H. wrote:
> Running `pacman -Qo ` usually, should tell you which packages 
> own the file.

This mechanic specifically does not work in this case because the files
in question are not owned by a specific package (only created by the
install file of a certain package).

  $ pacman -Qqo /etc/mkinitcpio.d/linux.preset
  error: No package owns /etc/mkinitcpio.d/linux.preset

Cheers,
gromit


signature.asc
Description: PGP signature


Re: Small question about mkinitcpio and linux.preset

2024-03-09 Thread Abraham S.A.H.
Running `pacman -Qo ` usually, should tell you which packages own 
the file.

--
Best Regards,
Abraham
Sent with Tutanota; https://tuta.com


Re: Small question about mkinitcpio and linux.preset

2024-03-09 Thread Óscar García Amor
El sáb, 09-03-2024 a las 13:19 +0100, Morten Linderud escribió:
> 
> 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
> 

Many many thanks Morten, the truth is that I was going crazy thinking,
but where does this come from?

Greetings.

-- 
Óscar García Amor | ogarcia at moire.org | http://ogarcia.me


signature.asc
Description: This is a digitally signed message part


Re: Small question about mkinitcpio and linux.preset

2024-03-09 Thread Morten Linderud
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


signature.asc
Description: PGP signature