You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by mu...@apache.org on 2012/12/06 09:09:10 UTC

[34/100] [abbrv] git commit: CLOUDSTACK-448: Detect when running inside Xen HVM

CLOUDSTACK-448: Detect when running inside Xen HVM

This was reported by Jason Bausewein <ja...@tier3.com>


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/e477e1b7
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/e477e1b7
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/e477e1b7

Branch: refs/heads/events-framework
Commit: e477e1b78daf7e9f063a8d3f30a3319acaf406ce
Parents: d251baf
Author: Wido den Hollander <wi...@widodh.nl>
Authored: Fri Nov 9 13:58:24 2012 +0100
Committer: Wido den Hollander <wi...@widodh.nl>
Committed: Fri Nov 9 14:05:27 2012 +0100

----------------------------------------------------------------------
 .../debian/config/etc/init.d/cloud-early-config    |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/e477e1b7/patches/systemvm/debian/config/etc/init.d/cloud-early-config
----------------------------------------------------------------------
diff --git a/patches/systemvm/debian/config/etc/init.d/cloud-early-config b/patches/systemvm/debian/config/etc/init.d/cloud-early-config
index 258e71e..f1c487d 100755
--- a/patches/systemvm/debian/config/etc/init.d/cloud-early-config
+++ b/patches/systemvm/debian/config/etc/init.d/cloud-early-config
@@ -102,8 +102,8 @@ get_boot_params() {
   local hyp=$(hypervisor)
   [ $? -ne 0 ] && log_it "Failed to detect hypervisor type, bailing out of early init" && exit 10
 
-  case $hyp in 
-     xen-domU)
+  case $hyp in
+     xen-domU|xen-hvm)
           cat /proc/cmdline > /var/cache/cloud/cmdline
           sed -i "s/%/ /g" /var/cache/cloud/cmdline
           ;;