Add virtualbox support to cloud-early-config so we can use virtualbox for testing

This commit is contained in:
Hugo Trippaers 2014-07-11 17:49:51 +02:00
parent c12767908d
commit 1ad1883b74

View File

@ -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
}