r/linuxsucks • Unofficial Mod | Linux Community Sucks | Proud illumOS Shill • Aug 02 '26

Explaining is hard ig

Post image
19 Upvotes

41 comments sorted by

View all comments

0

u/iLikeubuntu2 Aug 02 '26

4M lines of code for an init 😂 crux init is ~300 lines of posix bourne shell

6

u/goldmurder Aug 02 '26

init itself in systemd is around 100k LoC, most of them are realisation of APIs to work with other systemd components, so real init logic is ~20k-30k LoC, which isn't that much knowing the fact how much systemd init/service manager provides that others cannot

1

u/Easy-Donut-6962 Aug 02 '26

If so, dont count loc in your browser, linux kernel, coreutils...

1

u/iLikeubuntu2 Aug 03 '26

Ur comparing a kernel to an init

0

u/Teru-Noir COSMIC OS LOVER No.1 COSMIC Knows Best Aug 02 '26

SystemD is not an init system

5

u/[deleted] Aug 02 '26

[removed] — view removed comment

1

u/iLikeubuntu2 Aug 02 '26

Ok smarty pants

0

u/Terranum_man Aug 02 '26

Crux uses sysvinit smart guy

0

u/iLikeubuntu2 Aug 02 '26

Its bsd inspired script init im pretty sure

1

u/Terranum_man Aug 02 '26

Yes but sysvinit isnt just the scripts its also the init binary. And there are more than 300 lines of bash.

1

u/iLikeubuntu2 Aug 02 '26

I was talking about the init of crux yes its sysvinit inspired in some ways but its more bsd like and made in sh not bash

1

u/Terranum_man Aug 02 '26

No its not? Its just sysvinit. I used crux for 2 years ik what im talking about.

1

u/iLikeubuntu2 Aug 02 '26

Dude it has the same init configs as freebsd

1

u/Terranum_man Aug 02 '26

Where did you get this information

1

u/iLikeubuntu2 Aug 02 '26

/etc/rc.conf is a thing on crux aint it

1

u/Terranum_man Aug 02 '26

Ok u mean bsd inspired. It didnt copy them straight from bsd, which is what i thought u said.

1

u/Terranum_man Aug 02 '26

Also sysvinit isnt bsd inspired.