coreos-base/oem-hyperv: switch to ignition scheme

Since there is no cloud-config to drop here, just bring this OEM inline
with the others in terms of their structure.
This commit is contained in:
Alex Crawford 2017-03-13 17:33:20 -07:00
parent 51e22be86d
commit c047e9e91d
3 changed files with 7 additions and 11 deletions

View File

@ -1,8 +0,0 @@
#cloud-config
coreos:
oem:
id: hyperv
name: Microsoft Hyper-V
version-id: @@OEM_VERSION_ID@@
bug-report-url: https://issues.coreos.com

View File

@ -0,0 +1,4 @@
ID=hyperv
VERSION_ID=@@OEM_VERSION_ID@@
NAME="Microsoft Hyper-V"
BUG_REPORT_URL="https://issues.coreos.com"

View File

@ -16,12 +16,12 @@ IUSE=""
S="${WORKDIR}"
src_prepare() {
sed -e "s\\@@OEM_VERSION_ID@@\\${PVR}\\g" \
"${FILESDIR}/cloud-config.yml" > "${T}/cloud-config.yml" || die
sed -e "s\\@@OEM_VERSION_ID@@\\${PVR}\\g" \
"${FILESDIR}/oem-release" > "${T}/oem-release" || die
}
src_install() {
insinto "/usr/share/oem"
doins "${T}/cloud-config.yml"
doins "${FILESDIR}/grub.cfg"
doins "${T}/oem-release"
}