[pve-devel] [PATCH manager] fix #6116: ui: qemu: create wizard: order install ISO before additional ISO in boot order
Fiona Ebner
f.ebner at proxmox.com
Thu Jan 30 10:49:56 CET 2025
Also clarify the function comment with the original intention for why
this was added in the frontend (the backend cannot know which is
which), see commit fc3a88ad ("ui: qemu wizard: use better boot order
for second cd drive").
Signed-off-by: Fiona Ebner <f.ebner at proxmox.com>
---
www/manager6/qemu/CreateWizard.js | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/www/manager6/qemu/CreateWizard.js b/www/manager6/qemu/CreateWizard.js
index 520b5ac2..96949fe9 100644
--- a/www/manager6/qemu/CreateWizard.js
+++ b/www/manager6/qemu/CreateWizard.js
@@ -28,9 +28,8 @@ Ext.define('PVE.qemu.CreateWizard', {
// fot the special case that we have 2 cdrom drives
//
- // emulates part of the backend bootorder logic, but includes all
- // cdrom drives since we don't know which one the user put in a bootable iso
- // and hardcodes the known values (ide0/2, net0)
+ // emulates part of the backend bootorder logic, but includes all cdrom drives since the backend
+ // cannot know which one is a bootable iso and hardcodes the known values (ide0/2, net0)
calculateBootOrder: function(values) {
// user selected windows + second cdrom
if (values.ide0 && values.ide0.match(/media=cdrom/)) {
@@ -51,7 +50,7 @@ Ext.define('PVE.qemu.CreateWizard', {
if (disk) {
order.push(disk);
}
- order.push('ide0', 'ide2');
+ order.push('ide2', 'ide0'); // ide2 is the install ISO and should be first
if (values.net0) {
order.push('net0');
}
--
2.39.5
More information about the pve-devel
mailing list