summaryrefslogtreecommitdiff
path: root/pxeboot.write
diff options
context:
space:
mode:
Diffstat (limited to 'pxeboot.write')
-rwxr-xr-xpxeboot.write3
1 files changed, 2 insertions, 1 deletions
diff --git a/pxeboot.write b/pxeboot.write
index 3fdda5f..8c46bcb 100755
--- a/pxeboot.write
+++ b/pxeboot.write
@@ -415,7 +415,8 @@ class PXEBoot(morphlib.writeexts.WriteExtension):
def remote_pxeboot_config(self, tftproot, kernel_tftproot, kernel_subpath,
rootfs_nfsroot, rootfs_subpath, macaddr):
rootfs_nfs_url = '{}/{}'.format(rootfs_nfsroot, rootfs_subpath)
- kernel_tftp_url = '{}/{}'.format(kernel_tftproot, kernel_subpath)
+ url = urlparse.urlsplit(kernel_tftproot)
+ kernel_tftp_url = '{}:{}'.format(url.netloc, kernel_subpath)
pxe_cfg_filename = _normalise_macaddr(macaddr)
url = urlparse.urlsplit(tftproot)
inst_cfg_path = os.path.join(url.path, 'pxelinux.cfg')