summaryrefslogtreecommitdiff
path: root/morphlib/builder.py
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2012-03-16 11:25:35 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2012-03-16 11:25:35 +0000
commit5c52cf732a36232a9d20fc70943aefea3b7c9781 (patch)
treec68ea5fa3d25431fff4284de94b28cf9c7238fe8 /morphlib/builder.py
parent87c07470ad1d37841dcb594c53715ea3518bd4e9 (diff)
downloadmorph-5c52cf732a36232a9d20fc70943aefea3b7c9781.tar.gz
tar: add -h option to extraction
This should stop tar from replacing symbolic links with directories and instead follow the symbolic links, extracting the files into the linked directories
Diffstat (limited to 'morphlib/builder.py')
-rw-r--r--morphlib/builder.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/morphlib/builder.py b/morphlib/builder.py
index bf607d34..c3e71c09 100644
--- a/morphlib/builder.py
+++ b/morphlib/builder.py
@@ -494,7 +494,7 @@ class SystemBuilder(BlobBuilder): # pragma: no cover
with self.build_watch('unpack-strata'):
for name, filename in self.stage_items:
self.msg('unpack %s from %s' % (name, filename))
- self.ex.runv(['tar', '-C', mount_point, '-xf', filename])
+ self.ex.runv(['tar', '-C', mount_point, '-xhf', filename])
ldconfig(self.ex, mount_point)
def _create_fstab(self, mount_point):