6a373d fix broken extra_bins when installing multiple binaries

Authored and Committed by liutgnu 3 years ago
    fix broken extra_bins when installing multiple binaries
    
    upstream: fedora
    resolves: bz2003832
    conflict: none
    
    commit 6936fbc1b220f35b45b3114f04c6889a2b5e16a2
    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: commit 86538ca6e2e555caa8cdd2bcfcc3c5e94ac6bf58
               ("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>
    
        
file modified
+2 -1