flatcar-scripts/sdk_container
Mathieu Tortuyaux ebb6f281e7 coreos-base/oem-gce: bring back shutdown scripts
In the `init.sh` of the OEM GCE container, we have the following
section:

```bash
wait -n "${daemon_pids[@]}" || :
kill "${daemon_pids[@]}" || :

test -n "$stopping" || exit 1

exec /usr/bin/google_metadata_script_runner --script-type shutdown
```

`shutdown` script was not executed because container was receiving a
`SIGKILL`, the started processes was not properly terminated.

According to the `systemd-nspawn` manual:
```bash
If --boot is not used and this option is not specified
the container's processes are terminated abruptly via SIGKILL
```

Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
2022-05-23 17:54:48 +02:00
..
src/third_party/coreos-overlay coreos-base/oem-gce: bring back shutdown scripts 2022-05-23 17:54:48 +02:00