mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-20 22:11:39 +02:00
Merge pull request #974 from marineam/grub
Lots of bits for future GRUB and my own Xen testing
This commit is contained in:
commit
35e18d4d42
@ -9,7 +9,7 @@ HOMEPAGE="http://coreos.com"
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm x86"
|
||||
IUSE=""
|
||||
IUSE="vm-testing"
|
||||
|
||||
# The dependencies here are meant to capture "all the packages
|
||||
# developers want to use for development, test, or debug". This
|
||||
@ -52,12 +52,10 @@ RDEPEND="
|
||||
sys-process/ktop
|
||||
sys-process/procps
|
||||
sys-process/psmisc
|
||||
vm-testing? (
|
||||
app-emulation/xen
|
||||
app-emulation/xen-pvgrub
|
||||
app-emulation/xen-tools
|
||||
app-emulation/qemu
|
||||
)
|
||||
"
|
||||
|
||||
# TODO: sys-apps/iotools
|
||||
X86_DEPEND="
|
||||
app-benchmarks/i7z
|
||||
"
|
||||
|
||||
RDEPEND="${RDEPEND} x86? ( ${X86_DEPEND} )"
|
||||
RDEPEND="${RDEPEND} amd64? ( ${X86_DEPEND} )"
|
||||
|
7
sdk_container/src/third_party/coreos-overlay/coreos-base/oem-azure/files/grub.cfg
vendored
Normal file
7
sdk_container/src/third_party/coreos-overlay/coreos-base/oem-azure/files/grub.cfg
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
# CoreOS GRUB settings
|
||||
|
||||
# Azure only has a serial console.
|
||||
set linux_console="console=ttyS0,115200n8"
|
||||
serial com0 --speed=115200 --word=8 --parity=no
|
||||
terminal_input serial_com0
|
||||
terminal_output serial_com0
|
@ -25,4 +25,5 @@ src_prepare() {
|
||||
src_install() {
|
||||
insinto "/usr/share/oem"
|
||||
doins ${T}/cloud-config.yml
|
||||
doins ${FILESDIR}/grub.cfg
|
||||
}
|
7
sdk_container/src/third_party/coreos-overlay/coreos-base/oem-gce/files/grub.cfg
vendored
Normal file
7
sdk_container/src/third_party/coreos-overlay/coreos-base/oem-gce/files/grub.cfg
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
# CoreOS GRUB settings
|
||||
|
||||
# GCE only has a serial console.
|
||||
set linux_console="console=ttyS0,115200n8"
|
||||
serial com0 --speed=115200 --word=8 --parity=no
|
||||
terminal_input serial_com0
|
||||
terminal_output serial_com0
|
@ -1 +0,0 @@
|
||||
oem-gce-0.0.2.ebuild
|
@ -34,4 +34,5 @@ src_install() {
|
||||
|
||||
insinto "/usr/share/oem"
|
||||
doins ${T}/cloud-config.yml
|
||||
doins ${FILESDIR}/grub.cfg
|
||||
}
|
11
sdk_container/src/third_party/coreos-overlay/coreos-base/oem-rackspace-onmetal/files/grub.cfg
vendored
Normal file
11
sdk_container/src/third_party/coreos-overlay/coreos-base/oem-rackspace-onmetal/files/grub.cfg
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
# CoreOS GRUB settings
|
||||
|
||||
# Rackspace wanted a longer timeout, I forget why. (15 seconds)
|
||||
set timeout=15
|
||||
|
||||
# Switch default console to ttyS4, only applies to Linux since
|
||||
# GRUB needs exact IO ports for non-standard serial devices.
|
||||
set linux_console="console=ttyS4,115200n8 8250.nr_uarts=5"
|
||||
|
||||
# Blacklist MEI, the firmware is just plain broken.
|
||||
set linux_append="modprobe.blacklist=mei_me"
|
@ -26,4 +26,5 @@ src_install() {
|
||||
|
||||
insinto "/usr/share/oem"
|
||||
doins ${T}/cloud-config.yml
|
||||
doins ${FILESDIR}/grub.cfg
|
||||
}
|
32
sdk_container/src/third_party/coreos-overlay/coreos-base/oem-xendom0/files/cloud-config.yml
vendored
Normal file
32
sdk_container/src/third_party/coreos-overlay/coreos-base/oem-xendom0/files/cloud-config.yml
vendored
Normal file
@ -0,0 +1,32 @@
|
||||
#cloud-config
|
||||
|
||||
coreos:
|
||||
units:
|
||||
- name: xenstored.service
|
||||
command: start
|
||||
runtime: yes
|
||||
content: |
|
||||
[Unit]
|
||||
RequiresMountsFor=/proc/xen
|
||||
|
||||
[Service]
|
||||
ExecStartPre=/usr/sbin/modprobe xen-evtchn
|
||||
ExecStart=/usr/sbin/xenstored --no-fork
|
||||
ExecStartPost=/usr/bin/xenstore write /local/domain/0/name Domain-0
|
||||
ExecStartPost=/usr/bin/xenstore write /local/domain/0/domid 0
|
||||
- name: xenconsoled.service
|
||||
command: start
|
||||
runtime: yes
|
||||
content: |
|
||||
[Unit]
|
||||
Requires=xenstored.service
|
||||
After=xenstored.service
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/sbin/xenconsoled
|
||||
oem:
|
||||
id: xendom0
|
||||
name: Xen Domain0 for Testing
|
||||
version-id: @@OEM_VERSION_ID@@
|
||||
home-url: https://coreos.com
|
||||
bug-report-url: https://github.com/coreos/bugs/issues
|
15
sdk_container/src/third_party/coreos-overlay/coreos-base/oem-xendom0/files/grub.cfg
vendored
Normal file
15
sdk_container/src/third_party/coreos-overlay/coreos-base/oem-xendom0/files/grub.cfg
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
# Boot CoreOS as Xen Domain0
|
||||
|
||||
set default=coreos-xen
|
||||
|
||||
set xen_console="console=vga,com1 com1=115200,8n1"
|
||||
set linux_console="console=hvc0 console=tty0"
|
||||
serial com0 --speed=115200 --word=8 --parity=no
|
||||
terminal_input console serial_com0
|
||||
terminal_output console serial_com0
|
||||
|
||||
menuentry "CoreOS on Xen" --id=coreos-xen {
|
||||
multiboot /xen-@@XEN_VERSION@@.gz $xen_console noreboot
|
||||
gptprio.next -d root -u usr_uuid
|
||||
module /boot/vmlinuz $linux_console $linux_root usr=PARTUUID=$usr_uuid
|
||||
}
|
29
sdk_container/src/third_party/coreos-overlay/coreos-base/oem-xendom0/oem-xendom0-4.4.1.ebuild
vendored
Normal file
29
sdk_container/src/third_party/coreos-overlay/coreos-base/oem-xendom0/oem-xendom0-4.4.1.ebuild
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
# Copyright (c) 2013 CoreOS, Inc.. All rights reserved.
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
DESCRIPTION="OEM suite for Xen testing"
|
||||
HOMEPAGE=""
|
||||
SRC_URI=""
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64"
|
||||
IUSE=""
|
||||
|
||||
# no source directory
|
||||
S="${WORKDIR}"
|
||||
|
||||
src_prepare() {
|
||||
sed -e "s%@@OEM_VERSION_ID@@%${PVR}%g" \
|
||||
${FILESDIR}/cloud-config.yml > ${T}/cloud-config.yml || die
|
||||
sed -e "s%@@XEN_VERSION@@%${PV}%g" \
|
||||
${FILESDIR}/grub.cfg > ${T}/grub.cfg || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto "/usr/share/oem"
|
||||
doins ${T}/cloud-config.yml
|
||||
doins ${T}/grub.cfg
|
||||
}
|
5
sdk_container/src/third_party/coreos-overlay/coreos/config/env/app-emulation/xen
vendored
Normal file
5
sdk_container/src/third_party/coreos-overlay/coreos/config/env/app-emulation/xen
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
# Creating symlinks on FAT doesn't work, so don't do that
|
||||
INSTALL_MASK="${INSTALL_MASK}
|
||||
/boot/xen-?.?.gz
|
||||
/boot/xen-?.gz
|
||||
/boot/xen.gz"
|
6
sdk_container/src/third_party/coreos-overlay/coreos/config/env/app-emulation/xen-tools
vendored
Normal file
6
sdk_container/src/third_party/coreos-overlay/coreos/config/env/app-emulation/xen-tools
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
# We provide xenstore as a standalone package
|
||||
INSTALL_MASK="${INSTALL_MASK}
|
||||
/usr/bin/xenstore
|
||||
/usr/lib/debug/usr/bin/xenstore.debug
|
||||
/usr/lib/debug/usr/lib*/libxenstore.so*
|
||||
/usr/lib*/libxenstore.so*"
|
@ -97,10 +97,10 @@ dev-util/checkbashisms
|
||||
=sys-fs/lvm2-2.02.107
|
||||
=sys-block/thin-provisioning-tools-0.3.2
|
||||
|
||||
# this version includes the xen target
|
||||
=sys-boot/grub-2.02_beta2
|
||||
# current stable xen-tools doesn't build without multilib
|
||||
=app-emulation/xen-tools-4.4.0-r9
|
||||
# current stable (4.3.x) xen-tools doesn't build without multilib
|
||||
~app-emulation/xen-4.4.1
|
||||
~app-emulation/xen-tools-4.4.1
|
||||
~app-emulation/xen-pvgrub-4.4.1
|
||||
|
||||
# Security update, Gentoo hasn't finished marking it stable yet.
|
||||
# https://www.openssl.org/news/secadv_20141015.txt
|
||||
|
@ -1313,6 +1313,7 @@ CONFIG_BLK_DEV_NVME=m
|
||||
# CONFIG_CDROM_PKTCDVD is not set
|
||||
# CONFIG_ATA_OVER_ETH is not set
|
||||
CONFIG_XEN_BLKDEV_FRONTEND=m
|
||||
CONFIG_XEN_BLKDEV_BACKEND=m
|
||||
CONFIG_VIRTIO_BLK=m
|
||||
# CONFIG_BLK_DEV_HD is not set
|
||||
CONFIG_BLK_DEV_RBD=m
|
||||
@ -1864,6 +1865,7 @@ CONFIG_USB_NET_DRIVERS=m
|
||||
#
|
||||
# CONFIG_WAN is not set
|
||||
CONFIG_XEN_NETDEV_FRONTEND=m
|
||||
CONFIG_XEN_NETDEV_BACKEND=m
|
||||
CONFIG_VMXNET3=m
|
||||
CONFIG_HYPERV_NET=m
|
||||
# CONFIG_ISDN is not set
|
||||
@ -2348,7 +2350,7 @@ CONFIG_ITCO_VENDOR_SUPPORT=y
|
||||
# CONFIG_W83977F_WDT is not set
|
||||
# CONFIG_MACHZ_WDT is not set
|
||||
# CONFIG_SBC_EPX_C3_WATCHDOG is not set
|
||||
# CONFIG_XEN_WDT is not set
|
||||
CONFIG_XEN_WDT=m
|
||||
|
||||
#
|
||||
# PCI-based Watchdog Cards
|
||||
@ -3005,15 +3007,16 @@ CONFIG_XEN_SELFBALLOONING=y
|
||||
CONFIG_XEN_BALLOON_MEMORY_HOTPLUG=y
|
||||
CONFIG_XEN_SCRUB_PAGES=y
|
||||
CONFIG_XEN_DEV_EVTCHN=m
|
||||
# CONFIG_XEN_BACKEND is not set
|
||||
CONFIG_XEN_BACKEND=y
|
||||
CONFIG_XENFS=m
|
||||
CONFIG_XEN_COMPAT_XENFS=y
|
||||
CONFIG_XEN_SYS_HYPERVISOR=y
|
||||
CONFIG_XEN_XENBUS_FRONTEND=y
|
||||
# CONFIG_XEN_GNTDEV is not set
|
||||
CONFIG_XEN_GNTDEV=m
|
||||
CONFIG_XEN_GRANT_DEV_ALLOC=m
|
||||
CONFIG_SWIOTLB_XEN=y
|
||||
CONFIG_XEN_TMEM=m
|
||||
CONFIG_XEN_PCIDEV_BACKEND=m
|
||||
CONFIG_XEN_PRIVCMD=m
|
||||
CONFIG_XEN_ACPI_PROCESSOR=m
|
||||
CONFIG_XEN_MCE_LOG=y
|
||||
|
Loading…
x
Reference in New Issue
Block a user