fix broken extra_bins when installing multiple binaries
upstream: fedora resolves: bz2003832 conflict: none commit6936fbc1b2
Author: Coiby Xu <coxu@redhat.com> Date: Mon Nov 1 14:13:16 2021 +0800 fix broken extra_bins when installing multiple binaries When there more than one binaries, quoting "$val" would make dracut-install treat multiple binaries as one binary. Take "extra_bins /usr/sbin/ping /usr/sbin/ip" as an example, the following error would occur when building initrd, dracut-install: ERROR: installing '/usr/sbin/ping /usr/sbin/ip' dracut: FAILED: /usr/lib/dracut/dracut-install -D /var/tmp/dracut.ODrioZ/initramfs -a /usr/sbin/ping /usr/sbin/ip Fix it by not quoting the variable and bypassing SC2086 shellcheck. Fixes: commit86538ca6e2
("bash scripts: fix variable quoting issue") Acked-by: Tao Liu <ltao@redhat.com> Signed-off-by: Coiby Xu <coxu@redhat.com> Signed-off-by: Tao Liu <ltao@redhat.com>
This commit is contained in:
parent
0ebd803f45
commit
6a373dffde
@ -686,7 +686,8 @@ kdump_install_conf() {
|
||||
fi
|
||||
;;
|
||||
kdump_pre | kdump_post | extra_bins)
|
||||
dracut_install "$_val"
|
||||
# shellcheck disable=SC2086
|
||||
dracut_install $_val
|
||||
;;
|
||||
core_collector)
|
||||
dracut_install "${_val%%[[:blank:]]*}"
|
||||
|
Loading…
Reference in New Issue
Block a user