mirror of
https://github.com/flatcar/scripts.git
synced 2025-12-08 19:02:10 +01:00
Merge pull request #2476 from coreos/oem-vmware
coreos-base/oem-vmware: drop cloud-config
This commit is contained in:
commit
de06f0c5e0
@ -1,33 +0,0 @@
|
|||||||
#cloud-config
|
|
||||||
|
|
||||||
coreos:
|
|
||||||
units:
|
|
||||||
- name: vmtoolsd.service
|
|
||||||
command: start
|
|
||||||
content: |
|
|
||||||
[Unit]
|
|
||||||
Description=VMware Tools Agent
|
|
||||||
Documentation=http://open-vm-tools.sourceforge.net/
|
|
||||||
ConditionVirtualization=vmware
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStartPre=/usr/bin/ln -sfT /usr/share/oem/vmware-tools /etc/vmware-tools
|
|
||||||
ExecStart=/usr/share/oem/bin/vmtoolsd
|
|
||||||
TimeoutStopSec=5
|
|
||||||
|
|
||||||
- name: oem-cloudinit.service
|
|
||||||
command: restart
|
|
||||||
runtime: yes
|
|
||||||
content: |
|
|
||||||
[Unit]
|
|
||||||
Description=Cloudinit from VMware Backdoor
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=oneshot
|
|
||||||
ExecStart=/usr/bin/coreos-cloudinit --oem=vmware
|
|
||||||
|
|
||||||
oem:
|
|
||||||
bug-report-url: "https://issues.coreos.com"
|
|
||||||
id: vmware
|
|
||||||
name: VMWare
|
|
||||||
version-id: "@@OEM_VERSION_ID@@"
|
|
||||||
5
sdk_container/src/third_party/coreos-overlay/coreos-base/oem-vmware/files/oem-release
vendored
Normal file
5
sdk_container/src/third_party/coreos-overlay/coreos-base/oem-vmware/files/oem-release
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
ID=vmware
|
||||||
|
VERSION_ID=@@OEM_VERSION_ID@@
|
||||||
|
NAME="VMware"
|
||||||
|
HOME_URL="https://www.vmware.com/"
|
||||||
|
BUG_REPORT_URL="https://issues.coreos.com"
|
||||||
12
sdk_container/src/third_party/coreos-overlay/coreos-base/oem-vmware/files/units/vmtoolsd.service
vendored
Normal file
12
sdk_container/src/third_party/coreos-overlay/coreos-base/oem-vmware/files/units/vmtoolsd.service
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=VMware Tools Agent
|
||||||
|
Documentation=http://open-vm-tools.sourceforge.net/
|
||||||
|
ConditionVirtualization=vmware
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStartPre=/usr/bin/ln -sfT /usr/share/oem/vmware-tools /etc/vmware-tools
|
||||||
|
ExecStart=/usr/share/oem/bin/vmtoolsd
|
||||||
|
TimeoutStopSec=5
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
@ -22,11 +22,12 @@ S="${WORKDIR}"
|
|||||||
|
|
||||||
src_prepare() {
|
src_prepare() {
|
||||||
sed -e "s\\@@OEM_VERSION_ID@@\\${PVR}\\g" \
|
sed -e "s\\@@OEM_VERSION_ID@@\\${PVR}\\g" \
|
||||||
"${FILESDIR}/cloud-config.yml" > "${T}/cloud-config.yml" || die
|
"${FILESDIR}/oem-release" > "${T}/oem-release" || die
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
insinto "/usr/share/oem"
|
insinto "/usr/share/oem"
|
||||||
doins "${T}/cloud-config.yml"
|
|
||||||
doins "${FILESDIR}/grub.cfg"
|
doins "${FILESDIR}/grub.cfg"
|
||||||
|
doins "${T}/oem-release"
|
||||||
|
doins -r "${FILESDIR}/units"
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user