find-provides.ksyms, find-requires.ksyms: avoid awaking debuginfod
Starting with RHEL 9.2 and Fedora 35, debuginfod is enabled by default, which leads to significant startup times of various tools from the elfutils package (namely, readelf and objdump). Unset DEBUGINFOD_URLS to avoid it. Resolves: #2209253 Suggested-by: Panu Matilainen <pmatilai@redhat.com> Co-Authored-by: Denys Vlasenko <dvlasenk@redhat.com> Signed-off-by: Eugene Syromiatnikov <esyr@redhat.com>
This commit is contained in:
parent
83f4510a4c
commit
dc499f2b3a
@ -3,6 +3,10 @@
|
||||
IFS=$'\n'
|
||||
export LC_ALL=C
|
||||
|
||||
# Prevent elfutils from trying to download debuginfos
|
||||
unset DEBUGINFOD_URLS
|
||||
|
||||
|
||||
for module in $(grep -E '/lib/modules/.+\.ko(\.gz|\.bz2|\.xz|\.zst)?$') "$@"; do
|
||||
dep_pfx="ksym"
|
||||
# For built-in kmods, "kernel()" syntax is used instead of "ksym()"
|
||||
|
@ -7,6 +7,10 @@
|
||||
|
||||
IFS=$'\n'
|
||||
|
||||
# Prevent elfutils from trying to download debuginfos
|
||||
unset DEBUGINFOD_URLS
|
||||
|
||||
|
||||
# Extract all of the symbols provided by this module.
|
||||
all_provides() {
|
||||
for module in "$@"; do
|
||||
|
Loading…
Reference in New Issue
Block a user