SHA256
1
0
forked from pool/libguestfs

quote % in awk regex to avoid potential errors

OBS-URL: https://build.opensuse.org/package/show/Virtualization/libguestfs?expand=0&rev=57
This commit is contained in:
Olaf Hering 2012-09-03 08:27:44 +00:00 committed by Git OBS Bridge
parent f7c0877c99
commit 9518d1f2bb

View File

@ -401,7 +401,7 @@ cp -avL /boot/vmlinuz mkinitrd/boot_tmp/vmlinuz.${arch}
cp -avL /boot/System.map-${kver} mkinitrd/boot_tmp
# [Bug 778149] mkinitrd does not copy links correctly
mkdir mkinitrd/bin_tmp
for cmd in ` awk '/^#%programs:/ { print $2 }' mkinitrd/scripts/boot-guestfs.sh | sort -u `
for cmd in ` awk '/^#%%programs:/ { print $2 }' mkinitrd/scripts/boot-guestfs.sh | sort -u `
do
cp -v ` PATH=${RPM_BUILD_ROOT}/usr/bin:${RPM_BUILD_ROOT}/usr/sbin:${PATH}:/sbin:/usr/sbin type -p $cmd ` mkinitrd/bin_tmp/ || :
done