You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by hu...@apache.org on 2014/07/11 17:50:49 UTC
[3/3] git commit: updated refs/heads/vpc-toolkit-hugo to 2838723
Add virtualbox support to cloud-early-config so we can use virtualbox for testing
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/2838723d
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/2838723d
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/2838723d
Branch: refs/heads/vpc-toolkit-hugo
Commit: 2838723dfc5f3b587d8d808956eed89bc17bbb90
Parents: 0209af6
Author: Hugo Trippaers <ht...@schubergphilis.com>
Authored: Fri Jul 11 17:49:51 2014 +0200
Committer: Hugo Trippaers <ht...@schubergphilis.com>
Committed: Fri Jul 11 17:49:51 2014 +0200
----------------------------------------------------------------------
.../patches/debian/config/etc/init.d/cloud-early-config | 9 +++++++++
1 file changed, 9 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/2838723d/systemvm/patches/debian/config/etc/init.d/cloud-early-config
----------------------------------------------------------------------
diff --git a/systemvm/patches/debian/config/etc/init.d/cloud-early-config b/systemvm/patches/debian/config/etc/init.d/cloud-early-config
index bbf1998..f36d8cb 100755
--- a/systemvm/patches/debian/config/etc/init.d/cloud-early-config
+++ b/systemvm/patches/debian/config/etc/init.d/cloud-early-config
@@ -140,6 +140,15 @@ get_boot_params() {
cp -f /var/opt/hyperv/.kvp_pool_0 /var/cache/cloud/cmdline
cat /dev/null > /var/opt/hyperv/.kvp_pool_0
;;
+ virtualbox)
+ # Virtualbox is used to test the virtual router
+ # get the commandline from a dmistring (yes, hacky!)
+ dmidecode | grep cmdline | sed 's/^.*cmdline://' > /var/cache/cloud/cmdline
+ RV=$?
+ if [ $RV -ne 0 ] ; then
+ log_it "Failed to get cmdline from a virtualbox dmi property"
+ fi
+ ;;
esac
}