Top
Best
New

Posted by cf100clunk 4 days ago

Linux From Scratch ends SysVinit support(lists.linuxfromscratch.org)
223 points | 401 commentspage 2
jupake 4 days ago|
Modern mechanical engineers, to this day, learn the thermodynamics of steam engines. Not because they are living in the past, but because they are building foundation knowledge that will permeate everything they'll be doing in the future.

LFS should stick to academic pedagogy, instead of trying to compete in the Linux Distro space.

idoubtit 3 days ago|
The world is vast, and I doubt that every mechanical engineer has studied steam engines, and that it makes a difference in the end.

Most modern programmers don't learn COBOL60 or Commodore BASIC. Modern mathematician very rarely study writings of Euler or Gauss; even 50 years old math books may be hard to grasp for modern students.

I agree that using a simpler tool for educational purpose is useful, but since SysVinit is obsoleted almost everywhere, it made sense to drop it. LFS could have chosen a simpler init than the domain standard, like runit or s6-init.

its_magic 3 days ago||
"Obsolete"? Apparently you aren't paying close attention.

See this GIANT argument with hundreds of comments? It seems some people believe that SysVinit is, in fact, not even close to obsolete.

If Gnome/KDE can't support the init system I choose to use, then I don't choose to use their garbage software anymore.

ruhith 3 days ago||
The saddest part of this isn't the technical debate. It's that a project whose entire reason for existence is to teach you how things work has concluded that one of the most fundamental components of the system is now too entangled with everything else to offer a choice. That's not a vindication of systemd or an indictment of it. It's an honest admission about what happened to the Linux ecosystem's composability over the last decade.
guerrilla 3 days ago|
Exactly. Now, remember how everyone gaslit us into saying we'd always have a choice? We told you so.
jmclnx 4 days ago||
>The second reason for dropping System V is that packages like GNOME and soon KDE's Plasma are building in requirements that require capabilities in systemd

Do people who really uses LFS even want GNOME or KDE on their system ?

cf100clunk 4 days ago||
I would think people who use LFS are doing it for the learning experience and not necessarily for a daily driver OS.
spudlyo 4 days ago|||
Maybe? When I did LFS/BLFS I opted for an i3-gaps setup with a compositor and some other eye candy, and had a lot of fun tinkering. I suppose some folks might want the experience of building an entire DE from source, but that seems like a bit much.
Someone100 3 days ago||
I use Sway window manager and am more than happy to avoid those huge bloated Guiwares
ErroneousBosh 4 days ago||
"The second reason for dropping System V is that packages like GNOME and soon KDE's Plasma are building in requirements that require capabilities in systemd that are not in System V."

I remember LFS from way back in the day.

What do we all think the overlap between LFS users and Gnome or KDE users is? I think it's pretty small.

nineteen999 3 days ago||
It's funny I did an LFS system of my own a couple of years ago which I coined "Head Rat" Linux.

I used the SVR4 packaging system from heirloom-pkgtools (using this of a Claude port of V4 unix to x86_64 as well at the moment) for fun, and compiled up CDE on top of this to boot. I wanted to see what Linux would look like if you dressed it up as much like SVR4 as possible. I liked the result actually. It was kind of like what Sun might have done if they dumped their own kernel and switched to Linux instead.

Originally it used SysVinit, and I started working getting systemd to work with it (because after several years I've come to appreciate it) - but that's the point I stopped working on Headrat - I realised if I wasn't adding SVR4 stuff and was removing it instead, it wouldn't be SVR4 enough.

I don't know how I feel about it - after all I could do an LFS straight out of my head these days without referring to the LFS docs - but I do feel there is something lost when as a Linux community, we try to shove the baggage under the rug and pretend that things like SysV init didn't play a massive part in Linux's rise throughout the 90's and 00's.

History is important, even if we don't like the code today and have more capable tools. But I guess SysV init is deader than dead at this point.

abhisek 4 days ago||
LFS. Brings back so many painful memories. But then, learned so much.
sylware 3 days ago||
I ended linux from scratch support a long time ago. Well I did the right thing. Everything is systemd free on my side, for my own sake. This systemd is so much a "microsoft grade bad idea".

There is still interesting code patches here and there, and interesting info on brain damaged SDKs (gcc, glibc, etc).

Most of the time I remove the SDK itself, basically I write a linear and brutal shell script with fine grained control on the compiler/linker. I do push down to nearly remove completely the compiler driver (a spectacular failure) namely CPP->C->ASM->O.

I would like to move away from ELF too for a modern file format for dynamic libs and executable, but the "geniuses" using complex computer languages (mostly c++) for critical open source components make that a massive pain (runtime, ELF relocation requiring obsolete infrastructure, etc).

cjk 4 days ago||
Man. I'd really rather they did the inverse: drop systemd and only maintain the SysV versions of the materials, even if that means dropping GNOME/etc., because I think understanding the Linux init process is far more important than making any specific desktop environment available.
byte_0 4 days ago||
From a completely technical standpoint, is systemd really better than SysVInit? I ask this question in good faith. I have used both and had no problems with either, although for personal preference, I am more traditional and favor SysVInit.
rcxdude 4 days ago||
I always dreaded trying to create a service with bash-based init scripts. Not only did it involve rolling a heck of a lot yourself (the thing you were running was generally expected to do the double-fork hack itself and otherwise do 'well behaved daemon' things), it varied significantly from distro to distro, and I was never confident I actually got it right (and indeed, I often saw cases where it had most definitely gone wrong). Whereas systemd has a pretty trivial interface for running most anything and having some confidence it'll actually work right (in part because it can actually enforce things, like actually killing every process that's part of a service instead of kind of hoping that killing whats in the PIDfile is sufficient).
ptx 3 days ago|||
> the thing you were running was generally expected to do the double-fork hack itself and otherwise do 'well behaved daemon' things

FreeBSD has a general utility that does this for you, daemon(8): https://man.freebsd.org/cgi/man.cgi?query=daemon&sektion=8

nesarkvechnep 3 days ago||
I also use it every time I need a service which should be restarted on crash. It's a very handy utility.
bandrami 4 days ago|||
Is this really that hard to type?

https://github.com/openbsd/src/blob/master/etc/rc.d/watchdog...

idoubtit 3 days ago|||
> Is this really that hard to type?

Your link is irrelevant. It points to OpenBSD which uses rc, not sysv. The 3 lines of this rc startup script use a file of 400 lines of shell with commands that don't exist in SysVinit.

With sysv, the difficulty depended on the local tools because the launching scripts could not be shared across Linux distributions. Debian used the compiled helper `start-stop-daemon` while Redhat did not.

With sysv, some sysadmin tasks require external tools. Try to write a launching script with a smart autorestart in case of crash. Make it work even when the daemon forks. Do not assume that the daemon writes its initial PID anywhere. IIRC, to get this feature, we had to drop sysv for runit, two decades ago. Now it's just 2 lines in a systemd unit.

bandrami 3 days ago||
Init and run control aren't the same thing. Which is part of what's nice about sysv (which, yes, OpenBSD's init is based on). OpenBSD's run control system is particularly nice, and it's the sort of thing you can use with an init system that isn't constantly eating everything.
abenga 3 days ago|||
Probably not, but it looks a hell of a lot harder to understand than a unit file.
bandrami 3 days ago||
Huh? Not even remotely
abenga 3 days ago|||
It's probably straightforward for someone who works with it. For a newb like me, it needs effort to understand. I think unit files are self-documenting and straightforward to understand the first time you see them.
IshKebab 4 days ago|||
Yes, much better. The original intro blog post goes into detail: https://0pointer.de/blog/projects/systemd.html
0xbadcafebee 4 days ago||
One is not better than the other because they exist to solve different problems. Are sandals technically better than snowshoes?
SockThief 4 days ago|
I hate it when a website assumes the language I'm speaking based on my IP. There is no apparent way to change it as well. It's just lazy and hostile design in my opinion.
More comments...