Closed stew3254 closed 42 minutes ago
Hey @stew3254 thank you for reporting the issue.
You can set the boot.priority
in the YAML editor of the UI. The value needs to be put into quotes so it is passed as a string and not as a number. I tested this with the UI and it works:
root:
path: /
pool: default
size: 25GiB
type: disk
boot.priority: "10"
Note the quotes around 10, without I am running into the same error that you describe above.
I can confirm there is a bug that the ui will drop the boot.priority
on following edits. I will create a PR shortly to fix this issue, so the field gets preserved on edit.
Thanks @edlerd! I didn't consider putting it in quotes. Glad we were able to find something though.
Required information
Issue description
Since there is no option to set the boot priority on different devices in the 5.21 LXD UI, I attempted to add the boot.priority via the YAML configuration section of a profile. When I try to do that, I am given the error 'json: cannot unmarshal number into Go struct field ProfilePut.devices of type string'. If I remove that option from the YAML configuration in the UI, I can save. Doing this in the CLI doesn't raise any issues.
Now that I've added it to the profile via the CLI, if I navigate back to the YAML view I don't see it.
Steps to reproduce
Example:
10
to the root, and5
to the ISO. This should trigger an error