forked from pool/libguestfs
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libguestfs?expand=0&rev=35
28 lines
876 B
Diff
28 lines
876 B
Diff
--- mkinitrd/scripts/setup-prepare.sh.orig 2012-08-31 09:49:26.000000000 +0000
|
|
+++ mkinitrd/scripts/setup-prepare.sh 2012-08-31 09:51:16.000000000 +0000
|
|
@@ -29,13 +29,13 @@
|
|
if [ -h "$1" ]; then
|
|
lnkTarget=$(readlink $1)
|
|
if [ -e $lnkTarget ];then
|
|
- cp -a $lnkTarget $2/$lnkTarget
|
|
+ cp -v --remove-destination $lnkTarget $2/
|
|
else
|
|
# This link points to something in the same directory
|
|
lnkSrc="$1"
|
|
# Get the base bath of the link origin
|
|
lnkSrcBase=${lnkSrc%/*}
|
|
- cp -a $lnkSrcBase/$lnkTarget $2/$lnkSrcBase/$lnkTarget
|
|
+ cp -v --remove-destination $lnkSrcBase/$lnkTarget $2/$lnkSrcBase/$lnkTarget
|
|
fi
|
|
return 1
|
|
fi
|
|
@@ -43,7 +43,7 @@
|
|
}
|
|
|
|
cp_bin() {
|
|
- cp -a "$@" \
|
|
+ cp -v --remove-destination "$@" \
|
|
|| exit_code=1
|
|
|
|
if [ -h "$1" ]; then
|