From 56ee0c35b99511423e1df6ec62cdf1d113f002cc Mon Sep 17 00:00:00 2001 From: Mathieu Tortuyaux Date: Mon, 28 Aug 2023 11:08:03 +0200 Subject: [PATCH] fixup! overlay coreos-base/oem-ami: new sysext image --- .../coreos-overlay/coreos-base/oem-ami/files/manglefs.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-ami/files/manglefs.sh b/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-ami/files/manglefs.sh index a470a0f0e1e..cb6538458d7 100755 --- a/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-ami/files/manglefs.sh +++ b/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-ami/files/manglefs.sh @@ -7,13 +7,15 @@ rootfs="${1}" cat > "${rootfs}/usr/lib/systemd/system/setup-oem.service" <<-'EOF' [Unit] Description=Setup OEM +Before=amazon-ssm-agent.service [Service] Type=oneshot RemainAfterExit=yes -ExecStartPre=/usr/bin/cp /usr/share/amazon/ssm/amazon-ssm-agent.json /etc/amazon/ssm/amazon-ssm-agent.json.template -ExecStartPre=/usr/bin/cp /usr/share/amazon/ssm/seelog.xml /etc/amazon/ssm/seelog_unix.xml.template -ExecStartPre=/usr/bin/cp /usr/share/amazon/eks/bootstrap.sh /etc/eks/bootstrap.sh +ExecStartPre=/usr/bin/mkdir --parents /etc/amazon/ssm/ /etc/eks +ExecStartPre=/usr/bin/ln --symbolic /usr/share/amazon/ssm/amazon-ssm-agent.json.template /etc/amazon/ssm/amazon-ssm-agent.json +ExecStartPre=/usr/bin/ln --symbolic /usr/share/amazon/ssm/seelog.xml.template /etc/amazon/ssm/seelog.xml +ExecStart=/usr/bin/ln --symbolic /usr/share/amazon/eks/bootstrap.sh /etc/eks/bootstrap.sh [Install] WantedBy=multi-user.target