summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Gomes <tiago.gomes@codethink.co.uk>2015-02-24 14:55:25 (GMT)
committerTiago Gomes <tiago.gomes@codethink.co.uk>2015-02-27 17:28:38 (GMT)
commite100fddd212608f6b485c766163af4cf48e02bfe (patch)
treef1edb9671381def1ac094364c919a1819e959237
parentdfb6501478a1888e0447faf50a2fa3e01dbe96c9 (diff)
downloaddefinitions-e100fddd212608f6b485c766163af4cf48e02bfe.tar.gz
pxeboot: yield the correct value in remote_nfsroot()
-rwxr-xr-xpxeboot.write3
1 files changed, 2 insertions, 1 deletions
diff --git a/pxeboot.write b/pxeboot.write
index 0a6b7fc..d19d5c0 100755
--- a/pxeboot.write
+++ b/pxeboot.write
@@ -369,7 +369,8 @@ class PXEBoot(morphlib.writeexts.WriteExtension):
url.query, url.fragment))
cliapp.runcmd(['rsync', '-asXSPH', '--delete', rootfs, nfsroot],
stdin=None, stdout=None, stderr=None)
- yield basename
+ yield os.path.join(os.path.basename(tempdir),
+ os.path.basename(rootfs))
@staticmethod
def _write_pxe_config(fh, kernel_tftp_url, rootfs_nfs_url, extra_args=''):