SHA256
1
0
forked from pool/libguestfs
libguestfs/mkinitrd.patch
Olaf Hering e114d9a2d1 - Update to version 1.19.36
Add patch to collect a list of all called binaries from guestfsd

  patch mkinitrd to copy links (bnc#778149)

OBS-URL: https://build.opensuse.org/package/show/Virtualization/libguestfs?expand=0&rev=34
2012-08-30 18:40:11 +00:00

12 lines
457 B
Diff

--- mkinitrd/scripts/setup-prepare.sh.orig 2012-08-30 18:06:04.000000000 +0000
+++ mkinitrd/scripts/setup-prepare.sh 2012-08-30 18:14:06.000000000 +0000
@@ -29,7 +29,7 @@
if [ -h "$1" ]; then
lnkTarget=$(readlink $1)
if [ -e $lnkTarget ];then
- cp -a $lnkTarget $2/$lnkTarget
+ cp -a --remove-destination $lnkTarget $2/
else
# This link points to something in the same directory
lnkSrc="$1"