mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
Fix reboot of PV domains when both kernel and bootloader are unspecified
(which is supposed to default to using pygrub). Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
1 parent
468611d262
commit
6f37f18c79
1 file changed
+5
@@ -1106,6 +1106,11 @@ class XendConfig(dict):
|
||||
|
||||
self['PV_kernel'] = sxp.child_value(image_sxp, 'kernel','')
|
||||
self['PV_ramdisk'] = sxp.child_value(image_sxp, 'ramdisk','')
|
||||
if not self['PV_bootloader'] and self['PV_kernel']:
|
||||
# We've set PV_kernel using the call above, so now we need to set
|
||||
# PV_bootloader as well, otherwise we're going to do the wrong
|
||||
# thing on reboot.
|
||||
self['PV_bootloader'] = 'pygrub'
|
||||
kernel_args = sxp.child_value(image_sxp, 'args', '')
|
||||
|
||||
# attempt to extract extra arguments from SXP config
|
||||
|
||||