commit: d5ea03d6dca068ea7c4ee01209f2be600c52359b
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 14 14:37:29 2018 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sun Jan 14 14:37:29 2018 +0000
URL: https://gitweb.gentoo.org/proj/grss.git/commit/?id=d5ea03d6
grs/Netboot.py: correct unpacking of ISO tarball
grs/Netboot.py | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/grs/Netboot.py b/grs/Netboot.py
index 60cb027..c012c05 100644
--- a/grs/Netboot.py
+++ b/grs/Netboot.py
@@ -119,12 +119,8 @@ class Netboot(HashIt):
# locating the tarball
if do_cd == 'cd':
tarball_path = '/usr/share/grs-*/ISO-*.tar.gz'
- cmd = 'tar -Jcf %s .' % (tarball_path)
-
- cwd = os.getcwd()
- os.chdir(initramfs_root)
- Execute(cmd, timeout=600, logfile=self.logfile, shell=True)
- os.chdir(cwd)
+ cmd = 'tar --xattrs -xf %s -C %s' % (tarball_path, initramfs_root)
+ Execute(cmd, timeout=120, logfile=self.logfile)
# Note: we are copying the netboot kernel and initramfs into
# the ISO directory, so the kernel_dst and initramfs_dst above