From 51addbb7b43313b1869d648dcc7e6f8964e72d76 Mon Sep 17 00:00:00 2001 From: Chris Lumens Date: Thu, 10 Feb 2011 14:21:24 -0500 Subject: [PATCH] Specify "cpio -H newc" instead of "cpio -c". The latter does not always work with every version of cpio, so it's too unreliable to use. --- src/pylorax/installtree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pylorax/installtree.py b/src/pylorax/installtree.py index 650eabca..7575cf22 100644 --- a/src/pylorax/installtree.py +++ b/src/pylorax/installtree.py @@ -521,7 +521,7 @@ class LoraxInstallTree(BaseLoraxClass): find = subprocess.Popen([self.lcmds.FIND, "."], stdout=subprocess.PIPE, preexec_fn=chdir) - cpio = subprocess.Popen([self.lcmds.CPIO, "--quiet", "-c", "-o"], + cpio = subprocess.Popen([self.lcmds.CPIO, "--quiet", "-H", "newc", "-o"], stdin=find.stdout, stdout=subprocess.PIPE, preexec_fn=chdir)