Skip to content

Commit 8a0a7be

Browse files
committed
Merge branch 'krnowak/hyperv-sysext' into krnowak/selinux-coverage
2 parents afc7dbe + 7dc42bf commit 8a0a7be

File tree

3 files changed

+11
-17
lines changed

3 files changed

+11
-17
lines changed

build_library/vm_image_util.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -299,12 +299,15 @@ IMG_hetzner_OEM_SYSEXT=oem-hetzner
299299

300300
## hyper-v
301301
IMG_hyperv_DISK_FORMAT=vhd
302-
IMG_hyperv_OEM_PACKAGE=oem-hyperv
302+
IMG_hyperv_OEM_USE=hyperv
303+
IMG_hyperv_OEM_PACKAGE=common-oem-files
304+
IMG_hyperv_OEM_SYSEXT=oem-hyperv
303305

304306
## hyper-v vhdx
305307
IMG_hyperv_vhdx_DISK_FORMAT=vhdx
306-
IMG_hyperv_vhdx_OEM_PACKAGE=oem-hyperv
307-
308+
IMG_hyperv_vhdx_OEM_USE=hyperv
309+
IMG_hyperv_vhdx_OEM_PACKAGE=common-oem-files
310+
IMG_hyperv_vhdx_OEM_SYSEXT=oem-hyperv
308311

309312
## cloudsigma
310313
IMG_cloudsigma_DISK_FORMAT=qcow2
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ ARM64_ONLY_OEMIDS=(
4848
AMD64_ONLY_OEMIDS=(
4949
digitalocean
5050
gce
51+
hyperv
5152
vmware
5253
)
5354

Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (c) 2013 CoreOS, Inc.. All rights reserved.
22
# Distributed under the terms of the GNU General Public License v2
33

4-
EAPI=7
4+
EAPI=8
55

66
DESCRIPTION="OEM suite for Hyper-V"
77
HOMEPAGE=""
@@ -12,21 +12,11 @@ SLOT="0"
1212
KEYWORDS="amd64"
1313
IUSE=""
1414

15-
# no source directory
16-
S="${WORKDIR}"
17-
1815
RDEPEND="
1916
app-emulation/hv-daemons
2017
"
2118

22-
src_prepare() {
23-
default
24-
sed -e "s\\@@OEM_VERSION_ID@@\\${PVR}\\g" \
25-
"${FILESDIR}/oem-release" > "${T}/oem-release" || die
26-
}
19+
OEM_NAME="Microsoft Hyper-V"
2720

28-
src_install() {
29-
insinto "/oem"
30-
doins "${FILESDIR}/grub.cfg"
31-
doins "${T}/oem-release"
32-
}
21+
# no source directory
22+
S="${WORKDIR}"

0 commit comments

Comments
 (0)