mkdumprd: Fix dracut error on multiple extra_modules

Dracut expects --add-drivers with a single parameter, so mkdumprd
should quota the module list.

Signed-off-by: Kairui Song <kasong@redhat.com>
Acked-by: Pingfan Liu <piliu@redhat.com>
This commit is contained in:
Kairui Song 2020-06-15 16:34:51 +08:00
parent 1a5d44d7f4
commit 5d4a5896c9

View File

@ -471,7 +471,7 @@ handle_default_dump_target
if [ -n "$extra_modules" ]
then
add_dracut_arg "--add-drivers" "$extra_modules"
add_dracut_arg "--add-drivers" \"$extra_modules\"
fi
if ! is_fadump_capable; then