oem-*: use kernel parameter instead of oem-release

This commit is contained in:
Alex Crawford 2015-10-20 15:18:23 -07:00
parent 9122aea73b
commit ba1ed88eea
55 changed files with 66 additions and 38 deletions

View File

@ -1,5 +1,7 @@
# CoreOS GRUB settings # CoreOS GRUB settings
set oem_id="azure"
# Azure only has a serial console. # Azure only has a serial console.
set linux_console="console=ttyS0,115200n8 earlyprintk=ttyS0,115200 systemd.journald.forward_to_console=yes" set linux_console="console=ttyS0,115200n8 earlyprintk=ttyS0,115200 systemd.journald.forward_to_console=yes"
serial com0 --speed=115200 --word=8 --parity=no serial com0 --speed=115200 --word=8 --parity=no

View File

@ -26,5 +26,4 @@ src_install() {
insinto "/usr/share/oem" insinto "/usr/share/oem"
doins "${T}/cloud-config.yml" doins "${T}/cloud-config.yml"
doins "${FILESDIR}/grub.cfg" doins "${FILESDIR}/grub.cfg"
doins "${FILESDIR}/oem-release"
} }

View File

@ -0,0 +1,3 @@
# CoreOS GRUB settings
set oem_id="cloudsigma"

View File

@ -22,5 +22,5 @@ src_prepare() {
src_install() { src_install() {
insinto "/usr/share/oem" insinto "/usr/share/oem"
doins "${T}/cloud-config.yml" doins "${T}/cloud-config.yml"
doins "${FILESDIR}/oem-release" doins "${FILESDIR}/grub.cfg"
} }

View File

@ -0,0 +1,3 @@
# CoreOS GRUB settings
set oem_id="cloudstack"

View File

@ -33,5 +33,5 @@ src_install() {
insinto "/usr/share/oem" insinto "/usr/share/oem"
doins "${T}/cloud-config.yml" doins "${T}/cloud-config.yml"
doins "${FILESDIR}/oem-release" doins "${FILESDIR}/grub.cfg"
} }

View File

@ -0,0 +1,3 @@
# CoreOS GRUB settings
set oem_id="digitalocean"

View File

@ -22,5 +22,5 @@ src_prepare() {
src_install() { src_install() {
insinto "/usr/share/oem" insinto "/usr/share/oem"
doins "${T}/cloud-config.yml" doins "${T}/cloud-config.yml"
doins "${FILESDIR}/oem-release" doins "${FILESDIR}/grub.cfg"
} }

View File

@ -0,0 +1,3 @@
# CoreOS GRUB settings for EC2
set oem_id="brightbox"

View File

@ -1,5 +1,7 @@
# CoreOS GRUB settings for EC2 # CoreOS GRUB settings for EC2
set oem_id="ec2"
# Blacklist the Xen framebuffer module so it doesn't get loaded at boot # Blacklist the Xen framebuffer module so it doesn't get loaded at boot
# Disable `ens3` style names, so eth0 is used for both ixgbevf or xen. # Disable `ens3` style names, so eth0 is used for both ixgbevf or xen.
set linux_append="modprobe.blacklist=xen_fbfront net.ifnames=0 systemd.journald.forward_to_console=yes" set linux_append="modprobe.blacklist=xen_fbfront net.ifnames=0 systemd.journald.forward_to_console=yes"

View File

@ -0,0 +1,3 @@
# CoreOS GRUB settings for EC2
set oem_id="openstack"

View File

@ -45,10 +45,9 @@ src_install() {
doins "${T}/cloud-config.yml" doins "${T}/cloud-config.yml"
if use ec2 ; then if use ec2 ; then
newins "${FILESDIR}/grub-ec2.cfg" grub.cfg newins "${FILESDIR}/grub-ec2.cfg" grub.cfg
newins "${FILESDIR}/oem-release-ec2" oem-release
elif use openstack ; then elif use openstack ; then
newins "${FILESDIR}/oem-release-openstack" oem-release newins "${FILESDIR}/grub-openstack.cfg" grub.cfg
elif use brightbox ; then elif use brightbox ; then
newins "${FILESDIR}/oem-release-brightbox" oem-release newins "${FILESDIR}/grub-brightbox.cfg" grub.cfg
fi fi
} }

View File

@ -0,0 +1,3 @@
# CoreOS GRUB settings
set oem_id="exoscale"

View File

@ -33,5 +33,5 @@ src_install() {
insinto "/usr/share/oem" insinto "/usr/share/oem"
doins "${T}/cloud-config.yml" doins "${T}/cloud-config.yml"
doins "${FILESDIR}/oem-release" doins "${FILESDIR}/grub.cfg"
} }

View File

@ -1,5 +1,7 @@
# CoreOS GRUB settings # CoreOS GRUB settings
set oem_id="gce"
# GCE only has a serial console. # GCE only has a serial console.
set linux_append="systemd.journald.forward_to_console=yes" set linux_append="systemd.journald.forward_to_console=yes"
set linux_console="console=ttyS0,115200n8" set linux_console="console=ttyS0,115200n8"

View File

@ -35,5 +35,4 @@ src_install() {
insinto "/usr/share/oem" insinto "/usr/share/oem"
doins "${T}/cloud-config.yml" doins "${T}/cloud-config.yml"
doins "${FILESDIR}/grub.cfg" doins "${FILESDIR}/grub.cfg"
doins "${FILESDIR}/oem-release"
} }

View File

@ -0,0 +1,3 @@
# CoreOS GRUB settings
set oem_id="hyperv"

View File

@ -23,5 +23,5 @@ src_prepare() {
src_install() { src_install() {
insinto "/usr/share/oem" insinto "/usr/share/oem"
doins "${T}/cloud-config.yml" doins "${T}/cloud-config.yml"
doins "${FILESDIR}/oem-release" doins "${FILESDIR}/grub.cfg"
} }

View File

@ -0,0 +1,3 @@
# CoreOS GRUB settings
set oem_id="interoute"

View File

@ -38,5 +38,5 @@ src_install() {
insinto "/usr/share/oem" insinto "/usr/share/oem"
doins "${T}/cloud-config.yml" doins "${T}/cloud-config.yml"
doins "${FILESDIR}/oem-release" doins "${FILESDIR}/grub.cfg"
} }

View File

@ -0,0 +1,3 @@
# CoreOS GRUB settings
set oem_id="niftycloud"

View File

@ -33,5 +33,5 @@ src_install() {
insinto "/usr/share/oem" insinto "/usr/share/oem"
doins "${T}/cloud-config.yml" doins "${T}/cloud-config.yml"
doins "${FILESDIR}/oem-release" doins "${FILESDIR}/grub.cfg"
} }

View File

@ -0,0 +1,3 @@
# CoreOS GRUB settings
set oem_id="packet"

View File

@ -26,5 +26,5 @@ src_install() {
insinto "/usr/share/oem" insinto "/usr/share/oem"
doins "${T}/cloud-config.yml" doins "${T}/cloud-config.yml"
doins "${FILESDIR}/oem-release" doins "${FILESDIR}/grub.cfg"
} }

View File

@ -1,5 +1,7 @@
# CoreOS GRUB settings # CoreOS GRUB settings
set oem_id="rackspace-onmetal"
# Rackspace wanted a longer timeout, I forget why. (15 seconds) # Rackspace wanted a longer timeout, I forget why. (15 seconds)
set timeout=15 set timeout=15

View File

@ -23,5 +23,4 @@ src_install() {
insinto "/usr/share/oem" insinto "/usr/share/oem"
doins "${T}/cloud-config.yml" doins "${T}/cloud-config.yml"
doins "${FILESDIR}/grub.cfg" doins "${FILESDIR}/grub.cfg"
doins "${FILESDIR}/oem-release"
} }

View File

@ -0,0 +1,3 @@
# CoreOS GRUB settings
set oem_id="rackspace"

View File

@ -34,7 +34,7 @@ src_install() {
rsync --exclude=".git" -aq "${S}/" "${D}/usr/share/oem/nova-agent/" || die rsync --exclude=".git" -aq "${S}/" "${D}/usr/share/oem/nova-agent/" || die
insinto "/usr/share/oem" insinto "/usr/share/oem"
doins "${T}/cloud-config.yml" doins "${T}/cloud-config.yml"
doins "${FILESDIR}/oem-release" doins "${FILESDIR}/grub.cfg"
into "/usr/share/oem" into "/usr/share/oem"
dobin "${FILESDIR}/coreos-setup-environment" dobin "${FILESDIR}/coreos-setup-environment"

View File

@ -0,0 +1,3 @@
# CoreOS GRUB settings
set oem_id="vagrant"

View File

@ -18,5 +18,5 @@ S="${WORKDIR}"
src_install() { src_install() {
insinto "/usr/share/oem" insinto "/usr/share/oem"
doins "${FILESDIR}/cloud-config.yml" doins "${FILESDIR}/cloud-config.yml"
doins "${FILESDIR}/oem-release" doins "${FILESDIR}/grub.cfg"
} }

View File

@ -0,0 +1,3 @@
# CoreOS GRUB settings
set oem_id="vagrant"

View File

@ -24,7 +24,7 @@ src_install() {
insinto "/usr/share/oem" insinto "/usr/share/oem"
doins "${T}/cloud-config.yml" doins "${T}/cloud-config.yml"
doins -r "${FILESDIR}/box" doins -r "${FILESDIR}/box"
doins "${FILESDIR}/oem-release" doins "${FILESDIR}/grub.cfg"
into "/usr/share/oem" into "/usr/share/oem"
dobin "${FILESDIR}/coreos-setup-environment" dobin "${FILESDIR}/coreos-setup-environment"

View File

@ -0,0 +1,3 @@
# CoreOS GRUB settings
set oem_id="vmware"

View File

@ -28,5 +28,5 @@ src_prepare() {
src_install() { src_install() {
insinto "/usr/share/oem" insinto "/usr/share/oem"
doins "${T}/cloud-config.yml" doins "${T}/cloud-config.yml"
doins "${FILESDIR}/oem-release" doins "${FILESDIR}/grub.cfg"
} }

View File

@ -1,5 +1,7 @@
# Boot CoreOS as Xen Domain0 # Boot CoreOS as Xen Domain0
set oem_id="xendom0"
set default=coreos-xen set default=coreos-xen
set xen_console="console=vga,com1 com1=115200,8n1" set xen_console="console=vga,com1 com1=115200,8n1"

View File

@ -26,5 +26,4 @@ src_install() {
insinto "/usr/share/oem" insinto "/usr/share/oem"
doins "${T}/cloud-config.yml" doins "${T}/cloud-config.yml"
doins "${T}/grub.cfg" doins "${T}/grub.cfg"
doins "${FILESDIR}/oem-release"
} }