Merge lp:~allenap/maas/kernel-initrd-parameters into lp:~maas-committers/maas/trunk
Proposed by
Gavin Panella
Status: | Merged |
---|---|
Approved by: | Gavin Panella |
Approved revision: | no longer in the source branch. |
Merged at revision: | 808 |
Proposed branch: | lp:~allenap/maas/kernel-initrd-parameters |
Merge into: | lp:~maas-committers/maas/trunk |
Diff against target: |
334 lines (+124/-54) 6 files modified
src/maasserver/api.py (+51/-24) src/maasserver/tests/test_api.py (+36/-8) src/provisioningserver/pxe/config.py (+9/-4) src/provisioningserver/pxe/tests/test_config.py (+26/-6) src/provisioningserver/tests/test_tftp.py (+2/-10) src/provisioningserver/tftp.py (+0/-2) |
To merge this branch: | bzr merge lp:~allenap/maas/kernel-initrd-parameters |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Raphaël Badin (community) | Approve | ||
Review via email: mp+117432@code.launchpad.net |
Commit message
Calculate the PXE options KERNEL and INITRD in the pxeconfig view.
Description of the change
Calculate the kernel and initrd options in the pxeconfig view, instead of relying on them being passed from the dynamic TFTP server. The latter does not have all the necessary information at its disposal.
To post a comment you must log in.
Looks good. Just a few remarks but nothing major.
[0]
221 + title=title, kernel= "{}/kernel" .format( image_dir) , "{}/initrd. gz".format( image_dir) , append=append)
222 + initrd=
I also like .format() but I think using "%s/kernel" might be a little bit clearer in this case.
[1]
28 + if node is None:
29 + # This node is enlisting, for which we use a commissioning
30 + # image. TODO: Do we?
I /think/ smoser is working on that, maybe get in touch with to see where he is at with that.
[2]
93 + # TODO: don't hard-code release.
You can reference bug 1013146 here.