xend: Remember bootloader settings in xenstore
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 4 Dec 2008 11:31:37 +0000 (11:31 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 4 Dec 2008 11:31:37 +0000 (11:31 +0000)
When xend is restarted, bootloader settings of all running domains are
lost. The attached patches fixes this by saving bootloader and
bootloader_args to xenstore database.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
tools/python/xen/xend/XendConfig.py

index 0773fa5e574ce431f2dd0b8f49b2d6ff346f3ab9..3e1953fbb7260e163c632c2e81ddbf7849348e3d 100644 (file)
@@ -256,6 +256,8 @@ LEGACY_CFG_TYPES = {
     'on_xend_start': str,
     'online_vcpus':  int,
     'rtc/timeoffset': str,
+    'bootloader':    str,
+    'bootloader_args': str,
 }
 
 # Values that should be stored in xenstore's /vm/<uuid> that is used
@@ -276,6 +278,8 @@ LEGACY_XENSTORE_VM_PARAMS = [
     'on_reboot',
     'on_xend_start',
     'on_xend_stop',
+    'bootloader',
+    'bootloader_args',
 ]
 
 ##