[systemd-devel] Exploring Minimal Systemd in Initramfs for Faster Boot
Nils Kattenbeck
nilskemail at gmail.com
Tue Sep 24 12:00:15 UTC 2024
Are you aware that tools like mkosi already generate initrds which run
systemd? And systemd already has the logic to let services survive the
pivot_root (though that is discouraged and you should better use fdstore to
pass existing state to a new instance of the service).
Cheers, Nils
On Mon, Sep 23, 2024, 12:45 <Dharma.B at microchip.com> wrote:
> Hi Team,
>
> I'm exploring the possibility of splitting the systemd binary to
> optimize boot time before and after switching to the root filesystem.
>
> I’m aware that the systemd binary is quite large and may not fit in the
> initramfs, but is it feasible to have a minimal version of systemd that
> can invoke essential services and continue tracking them after
> transitioning to the main root filesystem?
>
> This approach is aimed at speeding up the boot process. I’m unsure if
> this is possible, which is why I’m seeking guidance from the systemd
> mailing list.
>
> --
> With Best Regards,
> Dharma B.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20240924/4927f347/attachment.htm>
More information about the systemd-devel
mailing list