kdump-collect/module-setup: Mimic the regular kdump folder structure

Currently, for no reason we have a different folder structure in
the kdump initrd compared to the installed package. Change it here,
so both directories' structure match now.

We also changed the copy command for the config files, removing
some unnecessary quotes.

Signed-off-by: Guilherme G. Piccoli <gpiccoli@igalia.com>
This commit is contained in:
Guilherme G. Piccoli
2022-11-25 17:07:13 -03:00
parent 87b2ae9de6
commit 0081681565
2 changed files with 16 additions and 17 deletions

View File

@ -16,8 +16,8 @@
# We have a more controlled situation with regards the config
# files here, since we manually added them in the initrd and
# the validation also happened there, during such addition,
# hence not requiring checking here.
for cfg in "/usr/lib/kdump/conf/"/*; do
# hence not requiring checks here.
for cfg in "/usr/share/kdump.d"/*; do
. "$cfg"
done