Skip to content

propolis-cli should send boot_order along#1179

Merged
iximeow merged 2 commits into
masterfrom
propolis-cli-boot-odor
Jul 20, 2026
Merged

propolis-cli should send boot_order along#1179
iximeow merged 2 commits into
masterfrom
propolis-cli-boot-odor

Conversation

@iximeow

@iximeow iximeow commented Jul 20, 2026

Copy link
Copy Markdown
Member

would you believe that ever since Propolis has been able to set a boot order in fwcfg, we've never tried to use it in propolis-cli? propolis-standalone is where I use it often, and of course Nexus just uses the API directly with none of this "CLI program" nonsense.

well, @leftwo ran into a case where a VM was busted because the disk's PCI device was changed between where the image was created and the bench cosmo where it was being run, and the solution there is ... set a boot order and boot the thing at least once. we pretty quickly found that propolis-cli wasn't doing the needful, and now it does.

@iximeow iximeow added the development Relating to engineering experience and development of propolis, not guest or product interfaces label Jul 20, 2026
/// `propolis-standalone`
#[derive(Serialize, Deserialize, Debug, PartialEq, Default)]
pub struct MachineSettings {
pub boot_order: Option<Vec<String>>,

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this gets a whole struct because I've thought for a minute that yoinking the cpus/memory/name fields from a standalone .toml would be really convenient if you're trying to reuse the file in both tools. as it turns out the toml is and has been a valid subset of the settings you'd need for the CLI, so my own /rpool/devel/images/ is full of "*.toml.standalone" which often end up used against propolis-server...

every time I have to open one up to find cpus = and memory = just to pass the CLI flags I think about this (which means about once every four months, to date)

@leftwo leftwo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this

@iximeow
iximeow merged commit bf8c4b2 into master Jul 20, 2026
14 checks passed
@iximeow
iximeow deleted the propolis-cli-boot-odor branch July 20, 2026 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

development Relating to engineering experience and development of propolis, not guest or product interfaces

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants