[systemd-devel] Exploring Minimal Systemd in Initramfs for Faster Boot
Brian Masney
bmasney at redhat.com
Mon Sep 30 14:20:22 UTC 2024
On Mon, Sep 30, 2024 at 4:35 AM Lennart Poettering
<lennart at poettering.net> wrote:
> While we do support binaries that stay running from the initrd, it's
> typically something I'd suggest people to avoid, and if they do it
> anyway, then at least only for a short time (i.e. terminate once boot
> is complete or so)
In case anyone is interested, I have an example program that starts a
minimal service in the initrd, passes its current state (and the
listening socket) to the main process that's started from the root
filesystem, and terminates the original process that was started from
the initrd.
https://github.com/masneyb/early-service-example
Brian
More information about the systemd-devel
mailing list