No equivalent of `-boot once` for `bootindex`
Goal
On platforms which support it, you can use -boot once=
to specify a boot order to be used just once. This is very useful if you want to e.g. boot with a certain method to deploy an operating system, then reboot and have the installed OS boot - you do not want to boot the same way again on the second boot.
Platforms which don't support -boot order=
and -boot once=
instead tend to support bootindex
properties for individual devices, which https://www.qemu.org/docs/master/system/bootindex.html advertises as being "more flexibl[e]" - but it's less flexible in this important way, because AFAICS, there is no equivalent of -boot once
for the bootindex
approach. Whatever boot order is defined by the bootindexes you set is used on every boot for as long as the VM exists.
It would be great if, somehow, it were possible to achieve the 'once' behaviour using bootindexes.