Re: Exploring Minimal Systemd in Initramfs for Faster Boot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx> 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.


[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux