diff options
author | 2018-01-14 09:37:29 -0500 | |
---|---|---|
committer | 2018-01-14 09:37:29 -0500 | |
commit | d5ea03d6dca068ea7c4ee01209f2be600c52359b (patch) | |
tree | 27ba30c91fc446ae0973e77454f002875c796a52 | |
parent | grs/Netboot.py: add option to make efi hybrid bootable CD (diff) | |
download | grss-d5ea03d6dca068ea7c4ee01209f2be600c52359b.tar.gz grss-d5ea03d6dca068ea7c4ee01209f2be600c52359b.tar.bz2 grss-d5ea03d6dca068ea7c4ee01209f2be600c52359b.zip |
grs/Netboot.py: correct unpacking of ISO tarball
-rw-r--r-- | grs/Netboot.py | 8 |
1 files 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 |