aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2018-01-14 12:05:30 -0500
committerAnthony G. Basile <blueness@gentoo.org>2018-01-14 12:05:30 -0500
commit1027c98b5617fceeadc96f479284d645e35595c5 (patch)
treee3267bcaee81d9b7502cf000428ed2a907513bd4
parentgrs/Interpret.py: fix bug in semantic interpreter (diff)
downloadgrss-1027c98b5617fceeadc96f479284d645e35595c5.tar.gz
grss-1027c98b5617fceeadc96f479284d645e35595c5.tar.bz2
grss-1027c98b5617fceeadc96f479284d645e35595c5.zip
grs/Netboot.py: fix path to ISO directory
-rw-r--r--grs/Netboot.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/grs/Netboot.py b/grs/Netboot.py
index c012c05..6b1fe7c 100644
--- a/grs/Netboot.py
+++ b/grs/Netboot.py
@@ -47,7 +47,7 @@ class Netboot(HashIt):
self.medium_name = 'initramfs-%s-%s%s%s' % (name, self.year, self.month, self.day)
self.digest_name = '%s.DIGESTS' % self.medium_name
self.kernelname = 'kernel-%s-%s%s%s' % (name, self.year, self.month, self.day)
- self.cd_name = '%s-%s%s%s.ISO' % (name, self.year, self.month, self.day)
+ self.cd_name = '%s-%s%s%s.iso' % (name, self.year, self.month, self.day)
def netbootit(self, do_cd=None, alt_name=None):
@@ -118,8 +118,9 @@ class Netboot(HashIt):
# TODO: This code is rushed and we need a better way of
# locating the tarball
if do_cd == 'cd':
- tarball_path = '/usr/share/grs-*/ISO-*.tar.gz'
- cmd = 'tar --xattrs -xf %s -C %s' % (tarball_path, initramfs_root)
+ # TODO: Before a regular release, we'll have to fix this path
+ tarball_path = '/usr/share/grs-9999/ISO-1.tar.gz'
+ cmd = 'tar --xattrs -xf %s -C %s' % (tarball_path, self.kernelroot)
Execute(cmd, timeout=120, logfile=self.logfile)
# Note: we are copying the netboot kernel and initramfs into