]> git.ipfire.org Git - thirdparty/libvirt.git/commit
bootloader_args is named bootargs in xen-xm
authorPhilipp Hahn <hahn@univention.de>
Thu, 5 Aug 2010 15:07:18 +0000 (17:07 +0200)
committerEric Blake <eblake@redhat.com>
Mon, 9 Aug 2010 22:11:25 +0000 (16:11 -0600)
commitab8b2bea4793e96a510a8b8f4081e1b366757a9e
tree2b67b97811c6a774e45ac8c8db913b9d2118d948
parent6324949fb11ce0148f34410f0ebf8f1a69ad82da
bootloader_args is named bootargs in xen-xm

According to <xen-3.4.3/tools/python/xen/xm/create.py:158>
gopts.var('bootargs', val='NAME',
  fn=set_value, default=None,
  use="Arguments to pass to boot loader")
the "bootloader_args" parameter needs to be translated into "bootargs"
when using "virsh domxml-to-native xen-xm".
The reverse direction (domxml-from-native) is already okay.

This patch fixes domxml-to-native and adds two test files to catch this
problem.

Signed-off-by: Philipp Hahn <hahn@univention.de>
src/xen/xm_internal.c
tests/xmconfigdata/sexpr2xml-pv-bootloader.cfg [new file with mode: 0644]
tests/xmconfigdata/sexpr2xml-pv-bootloader.xml [new file with mode: 0644]