Merge pull request #1592 from crawford/pxe

sys-apps/ignition: remove dependency on OEM part.
This commit is contained in:
Alex Crawford 2015-10-21 17:02:44 -07:00
commit 6f88cd24c3
60 changed files with 69 additions and 56 deletions

View File

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

View File

@ -26,5 +26,4 @@ src_install() {
insinto "/usr/share/oem"
doins "${T}/cloud-config.yml"
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() {
insinto "/usr/share/oem"
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"
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() {
insinto "/usr/share/oem"
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
set oem_id="ec2"
# 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.
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"
if use ec2 ; then
newins "${FILESDIR}/grub-ec2.cfg" grub.cfg
newins "${FILESDIR}/oem-release-ec2" oem-release
elif use openstack ; then
newins "${FILESDIR}/oem-release-openstack" oem-release
newins "${FILESDIR}/grub-openstack.cfg" grub.cfg
elif use brightbox ; then
newins "${FILESDIR}/oem-release-brightbox" oem-release
newins "${FILESDIR}/grub-brightbox.cfg" grub.cfg
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"
doins "${T}/cloud-config.yml"
doins "${FILESDIR}/oem-release"
doins "${FILESDIR}/grub.cfg"
}

View File

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

View File

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

View File

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

View File

@ -23,5 +23,4 @@ src_install() {
insinto "/usr/share/oem"
doins "${T}/cloud-config.yml"
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
insinto "/usr/share/oem"
doins "${T}/cloud-config.yml"
doins "${FILESDIR}/oem-release"
doins "${FILESDIR}/grub.cfg"
into "/usr/share/oem"
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() {
insinto "/usr/share/oem"
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"
doins "${T}/cloud-config.yml"
doins -r "${FILESDIR}/box"
doins "${FILESDIR}/oem-release"
doins "${FILESDIR}/grub.cfg"
into "/usr/share/oem"
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() {
insinto "/usr/share/oem"
doins "${T}/cloud-config.yml"
doins "${FILESDIR}/oem-release"
doins "${FILESDIR}/grub.cfg"
}

View File

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

View File

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

View File

@ -5,9 +5,6 @@ DefaultDependencies=false
Requires=local-fs-pre.target
Before=local-fs-pre.target
Requires=mnt-oem.mount
After=mnt-oem.mount
# setup networking
Wants=initrd-systemd-networkd.service
After=initrd-systemd-networkd.service
@ -21,6 +18,5 @@ After=disk-uuid.service
[Service]
Type=oneshot
Environment=OEM_ID=pxe
EnvironmentFile=-/mnt/oem/oem-release
EnvironmentFile=/run/ignition.env
ExecStart=/usr/bin/ignition --root=/sysroot --oem=${OEM_ID} --stage=disks

View File

@ -6,9 +6,6 @@ Before=initrd-parse-etc.service
Requires=initrd-root-fs.target
After=initrd-root-fs.target
Requires=mnt-oem.mount
After=mnt-oem.mount
Requires=ignition-disks.service
After=ignition-disks.service
@ -26,6 +23,5 @@ After=initrd-systemd-resolved.service
[Service]
Type=oneshot
Environment=OEM_ID=pxe
EnvironmentFile=-/mnt/oem/oem-release
EnvironmentFile=/run/ignition.env
ExecStart=/usr/bin/ignition --root=/sysroot --oem=${OEM_ID} --stage=files

View File

@ -1,7 +0,0 @@
[Unit]
DefaultDependencies=false
Before=initrd-switch-root.target
[Mount]
What=/dev/disk/by-label/OEM
Where=/mnt/oem

View File

@ -0,0 +1 @@
ignition-9999.ebuild

View File

@ -31,7 +31,6 @@ src_compile() {
src_install() {
newbin ${GOBIN}/src ${PN}
systemd_dounit "${FILESDIR}"/mnt-oem.mount
systemd_dounit "${FILESDIR}"/ignition.target
systemd_dounit "${FILESDIR}"/ignition-disks.service
systemd_dounit "${FILESDIR}"/ignition-files.service