Commit Graph

9 Commits

Author SHA1 Message Date
Eugene Syromiatnikov
8fa8d8c0bc weak-modules: use a proper program for dumping symvers
Previously it was assumed that symvers is in gzip format, which
is no longer the case, so zcat was used.  Dispatch based on the symvers
file extension.

Resolves: RHEL-39388
Signed-off-by: Eugene Syromiatnikov <esyr@redhat.com>
2024-08-12 16:12:00 +02:00
Eugene Syromiatnikov
2f9252cb9e weak-modules: add symvers.xz support
Check for symvers.xz support in addition to symvers.gz,
due to unnanounced unilateral change[1][2] in the kernel packaging.

[1] 2644665657
[2] 2db77a072a

* weak-modules (make_kernel_file_names): Interpret all arguments after
the second as a list of suffixes, iterate over them
(find_kernel_file): Switch print and suffix arguments, interpret all
argument after print as suffixes, pass them to make_kernel_file_names.
(find_symvers_file): Update the order of arguments in the
find_kernel_file call, add .xz suffix in addition to .gz.
(find_systemmap_file): Update the order of arguments in the
find_kernel_file call.

Signed-off-by: Eugene Syromiatnikov <esyr@redhat.com>
References: https://bugzilla.redhat.com/show_bug.cgi?id=2192895
2023-05-09 09:11:45 +02:00
Yauheni Kaliuta
2679f21c98 weak-modules: compare_initramfs_modules: exit on pushd/popd failures
Coverity reports warning
`warning[SC2164]: Use 'popd ... || exit' or 'popd ... || return' in case popd fails.`

This cannot happen in case of weak-modules, but makes no harm.

Signed-off-by: Yauheni Kaliuta <ykaliuta@redhat.com>
2021-08-10 16:03:41 +03:00
Yauheni Kaliuta
50733019f1 weak-modules: split modules into array with read -a
Coverity reports warning for splitting mods=($i)
`Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a.`

Even if it can not cause problems for weak-modules case where the
list is coming from modules.dep, use the recommended read -a method.

Signed-off-by: Yauheni Kaliuta <ykaliuta@redhat.com>
2021-08-10 16:03:34 +03:00
Yauheni Kaliuta
933fad99cb weak-modules: Sync with RHEL
Signed-off-by: Yauheni Kaliuta <ykaliuta@fedoraproject.org>
2020-01-20 18:56:21 +02:00
Laura Abbott
b006530fb5 weak-modules: Sync with RHEL
Signed-off-by: Laura Abbott <labbott@redhat.com>
2019-11-01 09:22:38 -04:00
Yauheni Kaliuta
559b043f51 weak-modules: sync with RHEL
Signed-off-by: Yauheni Kaliuta <ykaliuta@fedoraproject.org>
2019-02-25 15:10:47 +02:00
Josh Boyer
e197298135 Fix path to dracut in weak-modules (rhbz 1295038) 2016-01-07 14:21:01 -05:00
Václav Pavlín
59185aa6d2 Pull in weak-modules script for kABI 2013-03-28 16:31:33 +01:00