mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-22 15:01:00 +02:00
Merge pull request #2412 from packethost/oem-packet-remove-bond-workaround
coreos-overlay/oem-packet: Remove bond workaround
This commit is contained in:
commit
51e22be86d
@ -2,22 +2,12 @@
|
||||
|
||||
coreos:
|
||||
units:
|
||||
- name: oem-reset-interfaces.service
|
||||
command: start
|
||||
content: |
|
||||
[Unit]
|
||||
Description=Reset the bond.
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/share/oem/bin/reset-interfaces.sh
|
||||
- name: oem-cloudinit.service
|
||||
command: restart
|
||||
runtime: yes
|
||||
content: |
|
||||
[Unit]
|
||||
Description=Cloudinit from Packet metadata
|
||||
After=oem-reset-interfaces.service
|
||||
Requires=oem-reset-interfaces.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
|
@ -1,8 +0,0 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
logger "Hard reset of all network interfaces due to upstream systemd-networkd issue: https://github.com/coreos/bugs/issues/36 ."
|
||||
for iface in `ls -1 /sys/class/net | egrep -v "(^lo$|^bond)"`; do
|
||||
ip link set $iface down
|
||||
done
|
||||
ip link del bond0
|
||||
systemctl restart systemd-networkd
|
29
sdk_container/src/third_party/coreos-overlay/coreos-base/oem-packet/oem-packet-0.0.5.ebuild
vendored
Normal file
29
sdk_container/src/third_party/coreos-overlay/coreos-base/oem-packet/oem-packet-0.0.5.ebuild
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
# Copyright (c) 2014 CoreOS, Inc.. All rights reserved.
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
DESCRIPTION="OEM suite for Packet images"
|
||||
HOMEPAGE=""
|
||||
SRC_URI=""
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
|
||||
# no source directory
|
||||
S="${WORKDIR}"
|
||||
|
||||
src_prepare() {
|
||||
sed -e "s\\@@OEM_VERSION_ID@@\\${PVR}\\g" \
|
||||
"${FILESDIR}/cloud-config.yml" > "${T}/cloud-config.yml" || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
into "/usr/share/oem"
|
||||
dobin "${FILESDIR}/phone-home.sh"
|
||||
|
||||
insinto "/usr/share/oem"
|
||||
doins "${T}/cloud-config.yml"
|
||||
doins "${FILESDIR}/grub.cfg"
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user