CLOUDSTACK-448: Detect when running inside Xen HVM

This was reported by Jason Bausewein <jason.bausewein@tier3.com>
This commit is contained in:
Wido den Hollander 2012-11-09 13:58:24 +01:00
parent d251bafbd4
commit e477e1b78d

View File

@ -102,8 +102,8 @@ get_boot_params() {
local hyp=$(hypervisor) local hyp=$(hypervisor)
[ $? -ne 0 ] && log_it "Failed to detect hypervisor type, bailing out of early init" && exit 10 [ $? -ne 0 ] && log_it "Failed to detect hypervisor type, bailing out of early init" && exit 10
case $hyp in case $hyp in
xen-domU) xen-domU|xen-hvm)
cat /proc/cmdline > /var/cache/cloud/cmdline cat /proc/cmdline > /var/cache/cloud/cmdline
sed -i "s/%/ /g" /var/cache/cloud/cmdline sed -i "s/%/ /g" /var/cache/cloud/cmdline
;; ;;