[PATCH lorax/master] sysutils: add -x to cp in linktree

Will Woods wwoods at redhat.com
Mon Mar 18 15:59:47 UTC 2013


Since you can't make cross-device links, you'd think that cp -l (make
links) would imply -x (don't cross devices).

You'd be wrong.
---
 src/pylorax/sysutils.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/pylorax/sysutils.py b/src/pylorax/sysutils.py
index 6ce4c93..8743b9a 100644
--- a/src/pylorax/sysutils.py
+++ b/src/pylorax/sysutils.py
@@ -106,5 +106,4 @@ def remove(target):
         os.unlink(target)
 
 def linktree(src, dst):
-    runcmd(["/bin/cp", "-al", src, dst])
-
+    runcmd(["/bin/cp", "-alx", src, dst])
-- 
1.8.1.4



More information about the anaconda-patches mailing list