Emit default for bootmenu to be off (#1621)

Ensure the bootmenu is disabled by default. When not specified it will
default to the hypervisor default behaviour, however this is not
necessarily defined consistently across different distros. Therefore for
a consistent behaviour, simply ensure it is always configured to be off,
unless explicitly required to be enabled when the boot order is
configured.

Fixes: #947
This commit is contained in:
Darragh Bailey 2022-09-30 22:36:21 +01:00 committed by GitHub
parent 2882ad01b1
commit 7813ad3740
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
34 changed files with 34 additions and 3 deletions

View File

@ -73,9 +73,7 @@
<%- if @nvram -%> <%- if @nvram -%>
<nvram><%= @nvram %></nvram> <nvram><%= @nvram %></nvram>
<%- end -%> <%- end -%>
<%- if @boot_order.count >= 1 -%> <bootmenu enable='<%= @boot_order.count >= 1 ? "yes" : "no" %>'/>
<bootmenu enable='yes'/>
<%- end -%>
<kernel><%= @kernel %></kernel> <kernel><%= @kernel %></kernel>
<initrd><%= @initrd %></initrd> <initrd><%= @initrd %></initrd>
<cmdline><%= @cmd_line %></cmdline> <cmdline><%= @cmd_line %></cmdline>

View File

@ -10,6 +10,7 @@
</cpu> </cpu>
<os> <os>
<type>hvm</type> <type>hvm</type>
<bootmenu enable='no'/>
<kernel></kernel> <kernel></kernel>
<initrd></initrd> <initrd></initrd>
<cmdline></cmdline> <cmdline></cmdline>

View File

@ -10,6 +10,7 @@
</cpu> </cpu>
<os> <os>
<type>hvm</type> <type>hvm</type>
<bootmenu enable='no'/>
<kernel></kernel> <kernel></kernel>
<initrd></initrd> <initrd></initrd>
<cmdline></cmdline> <cmdline></cmdline>

View File

@ -10,6 +10,7 @@
</cpu> </cpu>
<os> <os>
<type>hvm</type> <type>hvm</type>
<bootmenu enable='no'/>
<kernel></kernel> <kernel></kernel>
<initrd></initrd> <initrd></initrd>
<cmdline></cmdline> <cmdline></cmdline>

View File

@ -10,6 +10,7 @@
</cpu> </cpu>
<os> <os>
<type>hvm</type> <type>hvm</type>
<bootmenu enable='no'/>
<kernel></kernel> <kernel></kernel>
<initrd></initrd> <initrd></initrd>
<cmdline></cmdline> <cmdline></cmdline>

View File

@ -10,6 +10,7 @@
</cpu> </cpu>
<os> <os>
<type>hvm</type> <type>hvm</type>
<bootmenu enable='no'/>
<kernel></kernel> <kernel></kernel>
<initrd></initrd> <initrd></initrd>
<cmdline></cmdline> <cmdline></cmdline>

View File

@ -10,6 +10,7 @@
</cpu> </cpu>
<os> <os>
<type>hvm</type> <type>hvm</type>
<bootmenu enable='no'/>
<kernel></kernel> <kernel></kernel>
<initrd></initrd> <initrd></initrd>
<cmdline></cmdline> <cmdline></cmdline>

View File

@ -10,6 +10,7 @@
</cpu> </cpu>
<os> <os>
<type>hvm</type> <type>hvm</type>
<bootmenu enable='no'/>
<kernel></kernel> <kernel></kernel>
<initrd></initrd> <initrd></initrd>
<cmdline></cmdline> <cmdline></cmdline>

View File

@ -10,6 +10,7 @@
</cpu> </cpu>
<os> <os>
<type>hvm</type> <type>hvm</type>
<bootmenu enable='no'/>
<kernel></kernel> <kernel></kernel>
<initrd></initrd> <initrd></initrd>
<cmdline></cmdline> <cmdline></cmdline>

View File

@ -10,6 +10,7 @@
</cpu> </cpu>
<os> <os>
<type>hvm</type> <type>hvm</type>
<bootmenu enable='no'/>
<kernel></kernel> <kernel></kernel>
<initrd></initrd> <initrd></initrd>
<cmdline></cmdline> <cmdline></cmdline>

View File

@ -10,6 +10,7 @@
</cpu> </cpu>
<os> <os>
<type>hvm</type> <type>hvm</type>
<bootmenu enable='no'/>
<kernel></kernel> <kernel></kernel>
<initrd></initrd> <initrd></initrd>
<cmdline></cmdline> <cmdline></cmdline>

View File

@ -10,6 +10,7 @@
</cpu> </cpu>
<os> <os>
<type>hvm</type> <type>hvm</type>
<bootmenu enable='no'/>
<kernel></kernel> <kernel></kernel>
<initrd></initrd> <initrd></initrd>
<cmdline></cmdline> <cmdline></cmdline>

View File

@ -10,6 +10,7 @@
</cpu> </cpu>
<os> <os>
<type>hvm</type> <type>hvm</type>
<bootmenu enable='no'/>
<kernel></kernel> <kernel></kernel>
<initrd></initrd> <initrd></initrd>
<cmdline></cmdline> <cmdline></cmdline>

View File

@ -10,6 +10,7 @@
</cpu> </cpu>
<os> <os>
<type>hvm</type> <type>hvm</type>
<bootmenu enable='no'/>
<kernel></kernel> <kernel></kernel>
<initrd></initrd> <initrd></initrd>
<cmdline></cmdline> <cmdline></cmdline>

View File

@ -10,6 +10,7 @@
</cpu> </cpu>
<os> <os>
<type>hvm</type> <type>hvm</type>
<bootmenu enable='no'/>
<kernel></kernel> <kernel></kernel>
<initrd></initrd> <initrd></initrd>
<cmdline></cmdline> <cmdline></cmdline>

View File

@ -10,6 +10,7 @@
</cpu> </cpu>
<os> <os>
<type>hvm</type> <type>hvm</type>
<bootmenu enable='no'/>
<kernel></kernel> <kernel></kernel>
<initrd></initrd> <initrd></initrd>
<cmdline></cmdline> <cmdline></cmdline>

View File

@ -10,6 +10,7 @@
</cpu> </cpu>
<os> <os>
<type>hvm</type> <type>hvm</type>
<bootmenu enable='no'/>
<kernel></kernel> <kernel></kernel>
<initrd></initrd> <initrd></initrd>
<cmdline></cmdline> <cmdline></cmdline>

View File

@ -10,6 +10,7 @@
</cpu> </cpu>
<os> <os>
<type>hvm</type> <type>hvm</type>
<bootmenu enable='no'/>
<kernel></kernel> <kernel></kernel>
<initrd></initrd> <initrd></initrd>
<cmdline></cmdline> <cmdline></cmdline>

View File

@ -7,6 +7,7 @@
<vcpu placement="static">2</vcpu> <vcpu placement="static">2</vcpu>
<os> <os>
<type arch="x86_64" machine="pc-i440fx-6.0">hvm</type> <type arch="x86_64" machine="pc-i440fx-6.0">hvm</type>
<bootmenu enable="yes"/>
<boot dev="hd"/> <boot dev="hd"/>
</os> </os>
<features> <features>

View File

@ -8,6 +8,7 @@
<vcpu placement="static">2</vcpu> <vcpu placement="static">2</vcpu>
<os> <os>
<type arch="x86_64" machine="pc-i440fx-6.0">hvm</type> <type arch="x86_64" machine="pc-i440fx-6.0">hvm</type>
<bootmenu enable="yes"/>
</os> </os>
<features> <features>

View File

@ -7,6 +7,7 @@
<vcpu placement='static'>2</vcpu> <vcpu placement='static'>2</vcpu>
<os> <os>
<type arch='x86_64' machine='pc-i440fx-6.0'>hvm</type> <type arch='x86_64' machine='pc-i440fx-6.0'>hvm</type>
<bootmenu enable='no'/>
<boot dev='hd'/> <boot dev='hd'/>
</os> </os>
<features> <features>

View File

@ -7,6 +7,7 @@
<vcpu placement='static'>2</vcpu> <vcpu placement='static'>2</vcpu>
<os> <os>
<type arch='x86_64' machine='pc-i440fx-6.0'>hvm</type><loader type='pflash'>/path/to/loader/file</loader><nvram>/path/to/nvram/file</nvram> <type arch='x86_64' machine='pc-i440fx-6.0'>hvm</type><loader type='pflash'>/path/to/loader/file</loader><nvram>/path/to/nvram/file</nvram>
<bootmenu enable='no'/>
<boot dev='hd'/> <boot dev='hd'/>
</os> </os>
<features> <features>

View File

@ -7,6 +7,7 @@
<vcpu placement='static'>2</vcpu> <vcpu placement='static'>2</vcpu>
<os> <os>
<type arch='x86_64' machine='pc-i440fx-6.0'>hvm</type> <type arch='x86_64' machine='pc-i440fx-6.0'>hvm</type>
<bootmenu enable='no'/>
<boot dev='hd'/> <boot dev='hd'/>
</os> </os>
<features> <features>

View File

@ -7,6 +7,7 @@
<vcpu placement='static'>2</vcpu> <vcpu placement='static'>2</vcpu>
<os> <os>
<type arch='x86_64' machine='pc-i440fx-6.0'>hvm</type> <type arch='x86_64' machine='pc-i440fx-6.0'>hvm</type>
<bootmenu enable='no'/>
<loader type='pflash'>/path/to/loader/file</loader> <loader type='pflash'>/path/to/loader/file</loader>
<nvram>/path/to/nvram/file</nvram> <nvram>/path/to/nvram/file</nvram>
<boot dev='hd'/> <boot dev='hd'/>

View File

@ -7,6 +7,7 @@
<vcpu placement='static'>2</vcpu> <vcpu placement='static'>2</vcpu>
<os> <os>
<type arch='x86_64' machine='pc-i440fx-6.0'>hvm</type> <type arch='x86_64' machine='pc-i440fx-6.0'>hvm</type>
<bootmenu enable='no'/>
<loader type='pflash'>/path/to/loader/file</loader> <loader type='pflash'>/path/to/loader/file</loader>
<nvram>/path/to/nvram/file1</nvram> <nvram>/path/to/nvram/file1</nvram>
<boot dev='hd'/> <boot dev='hd'/>

View File

@ -7,6 +7,7 @@
<vcpu placement='static'>2</vcpu> <vcpu placement='static'>2</vcpu>
<os> <os>
<type arch='x86_64' machine='pc-i440fx-6.0'>hvm</type> <type arch='x86_64' machine='pc-i440fx-6.0'>hvm</type>
<bootmenu enable='no'/>
<boot dev='hd'/> <boot dev='hd'/>

View File

@ -12,6 +12,7 @@
</cpu> </cpu>
<os> <os>
<type>hvm</type> <type>hvm</type>
<bootmenu enable='no'/>
<kernel></kernel> <kernel></kernel>
<initrd></initrd> <initrd></initrd>
<cmdline></cmdline> <cmdline></cmdline>

View File

@ -10,6 +10,7 @@
</cpu> </cpu>
<os> <os>
<type>hvm</type> <type>hvm</type>
<bootmenu enable='no'/>
<kernel></kernel> <kernel></kernel>
<initrd></initrd> <initrd></initrd>
<cmdline></cmdline> <cmdline></cmdline>

View File

@ -10,6 +10,7 @@
</cpu> </cpu>
<os> <os>
<type>hvm</type> <type>hvm</type>
<bootmenu enable='no'/>
<kernel></kernel> <kernel></kernel>
<initrd></initrd> <initrd></initrd>
<cmdline></cmdline> <cmdline></cmdline>

View File

@ -10,6 +10,7 @@
</cpu> </cpu>
<os> <os>
<type>hvm</type> <type>hvm</type>
<bootmenu enable='no'/>
<kernel></kernel> <kernel></kernel>
<initrd></initrd> <initrd></initrd>
<cmdline></cmdline> <cmdline></cmdline>

View File

@ -10,6 +10,7 @@
</cpu> </cpu>
<os> <os>
<type>hvm</type> <type>hvm</type>
<bootmenu enable='no'/>
<kernel></kernel> <kernel></kernel>
<initrd></initrd> <initrd></initrd>
<cmdline></cmdline> <cmdline></cmdline>

View File

@ -10,6 +10,7 @@
</cpu> </cpu>
<os> <os>
<type>hvm</type> <type>hvm</type>
<bootmenu enable='no'/>
<kernel></kernel> <kernel></kernel>
<initrd></initrd> <initrd></initrd>
<cmdline></cmdline> <cmdline></cmdline>

View File

@ -10,6 +10,7 @@
</cpu> </cpu>
<os> <os>
<type>hvm</type> <type>hvm</type>
<bootmenu enable='no'/>
<kernel></kernel> <kernel></kernel>
<initrd></initrd> <initrd></initrd>
<cmdline></cmdline> <cmdline></cmdline>

View File

@ -10,6 +10,7 @@
</cpu> </cpu>
<os> <os>
<type>hvm</type> <type>hvm</type>
<bootmenu enable='no'/>
<kernel></kernel> <kernel></kernel>
<initrd></initrd> <initrd></initrd>
<cmdline></cmdline> <cmdline></cmdline>