danderson / netboot

Packages and utilities for network booting
Apache License 2.0
1.48k stars 181 forks source link

ID function is not working in API mode #103

Closed kvaps closed 4 years ago

kvaps commented 4 years ago

API Server response:

{
  "kernel": "/srv/tftp/ltsp/x86_64/vmlinuz",
  "initrd": ["/srv/tftp/ltsp/x86_64/initrd.img", "/srv/tftp/ltsp/ltsp.img"],
  "cmdline": "ltsp.image=\"{{ ID \"/srv/ltsp/images/x86_64.img\" }}\" loop.max_part=9"
}

Pixiecore log:

[DHCP] Couldn't get bootspec for 02:00:10:ad:4a:48: parsing cmdline "ltsp.image=\"{{ ID \"/srv/ltsp/images/x86_64.img\" }}\" loop.max_part=9": template: cmdline:1: function "ID" not defined
danderson commented 4 years ago

Yup, ID is an internal thing, not part of the API spec. https://github.com/danderson/netboot/blob/master/pixiecore/README.api.md says you can use URL though to proxy a file fetch through pixiecore.