From 3a1e176cbba85e0e789052044d14a64e1c0a6aa9 Mon Sep 17 00:00:00 2001 From: Will Woods Date: Mon, 18 Mar 2013 11:58:35 -0400 Subject: [PATCH] sysutils: add -x to cp in linktree 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 6ce4c93e..8743b9a4 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])