From d5ea03d6dca068ea7c4ee01209f2be600c52359b Mon Sep 17 00:00:00 2001 From: "Anthony G. Basile" Date: Sun, 14 Jan 2018 09:37:29 -0500 Subject: 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 -- cgit v1.2.3-65-gdbad