4 ms·
Are there actually a lot of shared components between systemd (the init system), systemd-boot, and systemd-(everything else in systemd)?
by ghostpepper 7y ago
Are there actually a lot of shared components between systemd (the init system), systemd-boot, and systemd-(everything else in systemd)?
- pengaru 7y agoI haven't audited systemd-boot specifically but just look at bootctl.c's "" includes [0], those come from the systemd source tree, and very little is in the src/boot/ subdir. Consider the fact that the project is all relatively low-level C code without any external bloaty dependency like glib bringing simple data structures like linked lists and hash tables to the party. There's heaps of useful stuff in-tree, and its being maintained as a whole and kept in sync, in a similar style to the kernel. Poke around [1] [2] [3] for some idea of what's there. [0] https://github.com/systemd/systemd/blob/master/src/boot/bootctl.c#L15 https://github.com/systemd/systemd/blob/master/src/boot/boot... [1] https://github.com/systemd/systemd/tree/master/src/basic https://github.com/systemd/systemd/tree/master/src/basic [2] https://github.com/systemd/systemd/tree/master/src/libsystemd https://github.com/systemd/systemd/tree/master/src/libsystem... [3] https://github.com/systemd/systemd/tree/master/src/shared https://github.com/systemd/systemd/tree/master/src/shared