archrelease: copy trunk to testing-x86_64
[arch-packages.git] / mkinitcpio / trunk / 0001-Fix-the-warning-about-missing-modules.builtin.modinf.patch
blobb603439e1d9444ed480520d6cd950df54a38a723
1 From e629e34f18141a6244eaac2f0288d7b2a5d669ee Mon Sep 17 00:00:00 2001
2 From: Chih-Hsuan Yen <yan12125@gmail.com>
3 Date: Sun, 3 Jul 2022 11:03:10 +0800
4 Subject: [PATCH] Fix the warning about missing modules.builtin.modinfo
6 > depmod: WARNING: could not open modules.builtin.modinfo at /tmp/mkinitcpio.EftMSK/root/lib/modules/5.15.52-1-lts: No such file or directory
8 kmod wants modules.builtin.modinfo since v30 [1].
10 Also adds modules.order as suggested by heftig. That file is used (if
11 exists) since the first commit of depmod.
13 [1] https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git/commit/?id=0246e06340df292b5dda4bc00e24cc9ae894e881
14 ---
15 functions | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
18 diff --git a/functions b/functions
19 index 48cfd7a..e77a4c4 100644
20 --- a/functions
21 +++ b/functions
22 @@ -876,7 +876,7 @@ install_modules() {
23 (( ${#zst_comp[*]} )) && zstd -d --rm -q "${zst_comp[@]}"
25 msg "Generating module dependencies"
26 - install -m644 -t "$moduledest" "$_d_kmoduledir"/modules.builtin
27 + install -m644 -t "$moduledest" "$_d_kmoduledir"/modules.{builtin,builtin.modinfo,order}
29 # we install all modules into kernel/, making the .order file incorrect for
30 # the module tree. munge it, so that we have an accurate index. This avoids
31 --
32 2.37.0