r/MXLinux • u/Sir-Simon-Spamalot • Jul 15 '22
Discussion systemd-free?
Why is MX Linux marketed as systemd-free Linux distro only to have the systemd hidden within it? I know it's "not running, just invluded as dependency".
There's also the argument of "providing init freedom" but in fact it only provides a way to switch to systemd by removing sysvinit completely and not the other way around.
There are alternative repo to be based on (e.g. Devuan, even AntiX has nosystemd repo) and yet here we are.
Can someone explain the thought process behind this?
9
u/dolphinoracle MX dev Jul 15 '22
MX is not marketed as systemd free at least by the MX team, and never has been (possible exception mx14 but that was a long time ago). Some reviewers who dive skin deep sometimes miss this distinction. Even distrowatch lists both systemd and sysVinit.
the antiX live system was designed with sysVinit in mind, and was a major motivation in keeping sysVinit when debian switched to systemd. We have made some changes that allow the live system (and snapshot) to work with systemd, but its still a little cleaner with sysVinit.
We also decided to keep as close as possible to debian rather than basing on antiX or devuan. At the time, devuan lagged well behind even debian on package versions. antiX has a goal of being systemd-free, and so they operate their nosystemd repo. The MX team chose to use the systemd-shim approach instead. there is still a lot of cross-pollination with the antiX project though.
Having systemd present also gives users that use applications that require systemd for some reason an option to do so. important in a world where many service developers have seemingly never heard of anything but systemd. using snaps is possible to, if a user wants to install snapd, systemd is a requirement.
and last but not least, you do not have to remove sysVinit.
1
u/zhaoneng Sep 27 '22
Wouldn't it be a good idea to at least inform users as how to remove the other init? It may not be marketed as such but the information may be helpful for someone who may wanna make their os setup more minimal or reduce additional bloat of programs they arent using
1
u/dolphinoracle MX dev Sep 27 '22
Why would it be a good idea? There are plenty of distros that are actually systemd free.
but if somone wants to try it:
to remove sysVinit: apt install systemd-sysv
to remove systemd: apt install libpam-elogind; apt remove systemd-shim
each followed by
update-grub
1
u/zhaoneng Oct 16 '22
Runit, for instance, gives faster boot times in some instances for example and also has what some may consider faster commands to type out. Again having the choice is what linux is all about.
1
u/dolphinoracle MX dev Oct 16 '22
that isn't what you asked. switching from one of the big-two init systems that we support OOTB is very different than just choosing one that isn't.
for instance, users are free to try runit if they want to, and its in the debian repo. (there is an antiX runit version as well) Our installer does have runit support where needed, but I feel no obligation to tell a user how to switch to runit, being outside the scope of the mx project. There are other sources out there better suited.
1
u/zhaoneng Oct 18 '22
You may not have the obligation, however it encourages people to play around with their system, something people who used to be on windows were limited heavily on.
6
u/adrian_mxlinux MX dev Jul 15 '22
>Why is MX Linux marketed as systemd-free Linux distro
Where is it "marketed" as such?
6
u/adrian_mxlinux MX dev Jul 15 '22
>but in fact it only provides a way to switch to systemd by removing sysvinit completely and not the other way around.
Huh? You can switch to systemd from the GRUB menu, you don't have to remove anything.
3
Jul 15 '22
Also, you can set in MX boot options Sysvinit as one to always start with boot and forget about systemd. Like Adrian says, a lot of apps only working with systemd and that's why I'm using it until there is other solution. But hey, isn't it better if you have two options than one? I'm not sure which other distro have this option?
11
u/dashisghey Jul 15 '22
MX is based on debian and debian builds their packages against systemd so there will be a lot of software requiring systemd. Many software needs systemd functionality to run properly which is where systemd-shim comes in. Sysvinit is still the default and maintains PID 1