bottlerocket icon indicating copy to clipboard operation
bottlerocket copied to clipboard

Consider changing `[email protected]`'s `Type` to `idle`

Open etungsten opened this issue 3 years ago • 0 comments

We're adding serial console access support to Bottlerocket's admin container in https://github.com/bottlerocket-os/bottlerocket-admin-container/pull/59. We might want to avoid interleaving the admin container's output with other systemd unit status output in the console.

By changing [email protected]'s process start-up type to idle, the admin container's login prompt will show up towards the end and not get buried under other console output from other units since it'll wait until all active systemd jobs are dispatched. This would be consistent with how other distros handle serial console logins with [email protected]s. To quote https://wiki.archlinux.org/title/getty:

The option Type=idle found in the default [email protected] will delay the service startup until all jobs (state change requests to units) are completed in order to avoid polluting the login prompt with boot-up messages.

Another behavior change here would be that host-containers would run later in the boot sequence after all other host services start. This is OK since it makes host-containers start-up timing/ordering more consistent in the overall boot sequence.

See more about the different process start-up types here: https://www.freedesktop.org/software/systemd/man/systemd.service.html#Type=

etungsten avatar May 03 '22 19:05 etungsten