]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
inst_simple(): add -p flag to cp
authorHarald Hoyer <harald@redhat.com>
Thu, 13 Aug 2009 12:22:54 +0000 (14:22 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 13 Aug 2009 12:22:54 +0000 (14:22 +0200)
dracut-functions

index 0af93e23fbb767f4662a3e609f18c1270b2860e0..73bf1fe8ca1343304796bbca009f731ee82d840f 100755 (executable)
@@ -59,7 +59,7 @@ inst_simple() {
     [[ -f $target ]] && return 0
     mkdir -p "${target%/*}"
     dinfo "Installing $src" 
-    cp -fL "$src" "$target"
+    cp -pfL "$src" "$target"
 }
 
 # Same as above, but specialzed to handle dynamic libraries.