News for hackers. Stuff that matters.
Re:Replace GRUB2 with systemd-boot on Ubuntu 18.04 (2018) by ghostpepper on Wednesday April 01, 2020 @07:09PM (#22754503)
Are there actually a lot of shared components between systemd (the init system), systemd-boot, and systemd-(everything else in systemd)?
Re:Replace GRUB2 with systemd-boot on Ubuntu 18.04 (2018) by pengaru on Wednesday April 01, 2020 @07:39PM (#22754713)
I 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/boot...

[1] https://github.com/systemd/systemd/tree/master/src/basic

[2] https://github.com/systemd/systemd/tree/master/src/libsystem...

[3] https://github.com/systemd/systemd/tree/master/src/shared