mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-02 01:45:17 +00:00
conf: add boot order to filesystem
Signed-off-by: Ján Tomko <jtomko@redhat.com> Tested-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
082164f04b
commit
baa4a4695c
@ -2812,6 +2812,9 @@
|
||||
<empty/>
|
||||
</element>
|
||||
</optional>
|
||||
<optional>
|
||||
<ref name="deviceBoot"/>
|
||||
</optional>
|
||||
<optional>
|
||||
<ref name="alias"/>
|
||||
</optional>
|
||||
|
@ -10298,7 +10298,8 @@ virDomainFSDefParseXML(virDomainXMLOptionPtr xmlopt,
|
||||
def->src->path = g_steal_pointer(&source);
|
||||
def->dst = g_steal_pointer(&target);
|
||||
|
||||
if (virDomainDeviceInfoParseXML(xmlopt, node, &def->info, flags) < 0)
|
||||
if (virDomainDeviceInfoParseXML(xmlopt, node, &def->info,
|
||||
flags | VIR_DOMAIN_DEF_PARSE_ALLOW_BOOT) < 0)
|
||||
goto error;
|
||||
|
||||
return def;
|
||||
@ -24858,7 +24859,7 @@ virDomainFSDefFormat(virBufferPtr buf,
|
||||
if (def->readonly)
|
||||
virBufferAddLit(buf, "<readonly/>\n");
|
||||
|
||||
virDomainDeviceInfoFormat(buf, &def->info, flags);
|
||||
virDomainDeviceInfoFormat(buf, &def->info, flags | VIR_DOMAIN_DEF_FORMAT_ALLOW_BOOT);
|
||||
|
||||
if (def->space_hard_limit)
|
||||
virBufferAsprintf(buf, "<space_hard_limit unit='bytes'>"
|
||||
|
@ -66,6 +66,7 @@
|
||||
<binary path='/usr/libexec/virtiofsd'/>
|
||||
<source dir='/path'/>
|
||||
<target dir='mount_tag'/>
|
||||
<boot order='2'/>
|
||||
<address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
|
||||
</filesystem>
|
||||
<input type='mouse' bus='ps2'/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user