Skip to content

Commit 5cfbf6e

Browse files
committed
coreos-base/oem-gce: migrate gce to sysext format
Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
1 parent 90fb8ad commit 5cfbf6e

File tree

12 files changed

+67
-105
lines changed

12 files changed

+67
-105
lines changed

build_library/vm_image_util.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,10 @@ IMG_iso_MEM=2048
256256
## gce, image tarball
257257
IMG_gce_DISK_LAYOUT=vm
258258
IMG_gce_CONF_FORMAT=gce
259-
IMG_gce_OEM_PACKAGE=oem-gce
259+
IMG_gce_OEM_PACKAGE=common-oem-files
260260
IMG_gce_OEM_ACI=gce
261+
IMG_gce_OEM_USE=gce
262+
IMG_gce_OEM_SYSEXT=oem-gce
261263

262264
## rackspace
263265
IMG_rackspace_OEM_PACKAGE=oem-rackspace
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ fi
3131
COMMON_OEMIDS=(
3232
ami
3333
azure
34+
gce
3435
openstack
3536
packet
3637
qemu

sdk_container/src/third_party/coreos-overlay/coreos-base/oem-gce/files/grub.cfg renamed to sdk_container/src/third_party/coreos-overlay/coreos-base/common-oem-files/files/gce/grub.cfg.frag

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
# Flatcar GRUB settings
2-
3-
set oem_id="gce"
4-
51
# GCE only has a serial console.
62
set linux_console="console=ttyS0,115200n8"
73
serial com0 --speed=115200 --word=8 --parity=no
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/etc/systemd/system/multi-user.target.wants/oem-cloudinit.service
2+
/etc/systemd/system/multi-user.target.wants/oem-gce.service
3+
/etc/systemd/system/oem-cloudinit.service
4+
/etc/systemd/system/oem-gce-enable-oslogin.service
5+
/etc/systemd/system/oem-gce.service
6+
/etc/systemd/system/sysinit.target.wants/oem-gce-enable-oslogin.service
7+
/oem/base/
8+
/oem/bin/
9+
/oem/files/
10+
/oem/flatcar-oem-gce.aci
11+
/oem/units/
12+
/var/lib/flatcar-oem-gce
13+
/var/lib/flatcar-oem-gce.img

sdk_container/src/third_party/coreos-overlay/coreos-base/oem-gce/files/base/README

Lines changed: 0 additions & 4 deletions
This file was deleted.

sdk_container/src/third_party/coreos-overlay/coreos-base/oem-gce/files/base/base.ign

Lines changed: 0 additions & 57 deletions
This file was deleted.

sdk_container/src/third_party/coreos-overlay/coreos-base/oem-gce/files/oem-release

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[Unit]
2+
Upholds=oem-gce-enable-oslogin.service setup-oem.service

sdk_container/src/third_party/coreos-overlay/coreos-base/oem-gce/files/units/oem-gce-enable-oslogin.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Before=sshd.socket
1010
Type=oneshot
1111
RemainAfterExit=true
1212

13-
ExecStart=/oem/bin/enable-oslogin
13+
ExecStart=/usr/bin/enable-oslogin
1414

1515
[Install]
1616
WantedBy=sysinit.target
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[Unit]
2+
Description=Setup OEM
3+
Before=oem-gce-enable-oslogin.service
4+
DefaultDependencies=false
5+
6+
[Service]
7+
Type=oneshot
8+
RemainAfterExit=yes
9+
ExecStart=-/usr/bin/ln --symbolic --force /usr/share/gce/hosts /etc/hosts
10+
ExecStart=-/usr/bin/ln --symbolic /usr/share/gce/google-cloud-sdk.sh /etc/profile.d/google-cloud-sdk.sh
11+
[Install]
12+
WantedBy=sysinit.target

0 commit comments

Comments
 (0)