|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] Xen 3.0.3 pre-pended all configuration pr
# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1167994996 0
# Node ID 68f0d46de55ab1e158c19e7e5890902e05d6f623
# Parent 10a6d7eff555ac428fc85c7ee575ccf22d502623
Xen 3.0.3 pre-pended all configuration prior to the user-specified
args in the boot cmdline. Restore this behaviour to fix
incompatabilities with fragile parsers in some domU kernels.
Signed-off-by: John Levon <john.levon@xxxxxxx>
---
tools/python/xen/xend/XendConfig.py | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff -r 10a6d7eff555 -r 68f0d46de55a tools/python/xen/xend/XendConfig.py
--- a/tools/python/xen/xend/XendConfig.py Fri Jan 05 10:58:48 2007 +0000
+++ b/tools/python/xen/xend/XendConfig.py Fri Jan 05 11:03:16 2007 +0000
@@ -1113,15 +1113,19 @@ class XendConfig(dict):
# configuration
log.debug("update_with_image_sxp(%s)" % scrub_password(image_sxp))
- kernel_args = sxp.child_value(image_sxp, 'args', '')
+ kernel_args = ""
# attempt to extract extra arguments from SXP config
arg_ip = sxp.child_value(image_sxp, 'ip')
if arg_ip and not re.search(r'ip=[^ ]+', kernel_args):
- kernel_args += ' ip=%s' % arg_ip
+ kernel_args += 'ip=%s ' % arg_ip
arg_root = sxp.child_value(image_sxp, 'root')
if arg_root and not re.search(r'root=', kernel_args):
- kernel_args += ' root=%s' % arg_root
+ kernel_args += 'root=%s ' % arg_root
+
+ # user-specified args must come last: previous releases did this and
+ # some domU kernels rely upon the ordering.
+ kernel_args += sxp.child_value(image_sxp, 'args', '')
if bootloader:
self['_temp_using_bootloader'] = '1'
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] Xen 3.0.3 pre-pended all configuration prior to the user-specified,
Xen patchbot-unstable <=
|
|
|
|
|