u/2brainz
In this archive from Jan 2011 to May 2023
- 8
- posts
- 779
- comments
- 0
- media
- 5.4k
- score
Top posts
AUR upgraded to 2.0.0
mailman.archlinux.org/pipermail/aur-general/2012...Package signing update: 107 left to go
I noticed this the other day and it kind of made me happy: As of today, only 107 packages in Arch Linux's official repositories lack signatures: Core: 366/366 packages signed Extra: 4718/4718 packages signed Multilib: 136/136 packages signed Community: 3934/4041 packages signed (I omitted the variou...
I was the primary maintainer for Arch's init scripts for a while and I can share a couple of thoughts.
Arch's initscripts were incredibly stupid. In their first phase, there was a static set of steps that would be performed on every boot. There was almost no way to adjust the behaviour here. In their second phase, the configured daemons were started in order, which only meant that a init scripts were called one after another.
In the early 2000s, that seemed like a good idea and has worked for a while. But with more complex setups, the shortcomings of that system become apparent.
With hardware becoming more dynamic and asynchronous initialization of drivers in the kernel, it was impossible to say when a certain piece of hardware would be available. For a long time, this was solved by first triggering uevents, then waiting for udev to "settle". This often took a very long time and still gave no guarantee that all required hardware was available. Working around this in shell code would be very complex, slow and error-prone: You'd have to retry all kinds of operations in a loop until they succeed. Solution: An system that can perform actions based on events - this is one of the major features of systemd.
Initscripts had no dependency handling for daemons. In times where only a few services depended on dbus and nothing else, that was easy to handle. Nowadays, we have daemons with far more complex dependencies, which would make configuration in the old initscripts-style way hard for every user. Handling dependencies is a complex topic and you don't want to deal with it in shell code. Systemd has it built-in (and with socket-activation, a much better mechanism to deal with dependencies).
Complex tasks in shell scripts require launching external helper program A LOT. This makes things very slow. Systemd handles most of those tasks with builtin fast C code, or via the right libraries. It won't call many external programs to perform its tasks.
The whole startup process was serialized. Also very slow. Systemd can parallelize it and does so quite well.
No indication of whether a certain daemon was already started. Each init script had to implement some sort of PID file handling or similar. Most init scripts didn't. Systemd has a 100% reliable solution for this based on Linux cgroups.
Race conditions between daemons started via udev rules, dbus activation and manual configuration. It could happen that a daemon was started multiple times (maybe even simultaneously), which lead to unexpected results (this was a real problem with bluez). Systemd provides a single instance where all daemons are handled. Udev or dbus don't start daemons anymore, they tell systemd that they need a specific daemon and systemd takes care of it.
Lack of confiurability. It was impossible to change the behaviour of initscripts in a way that would survive system updates. Systemd provides good mechanisms with machine-specific overrides, drop-ins and unit masking.
Burden of maintenance: In addition to the aforementioned design problems, initscripts also had a large number of bugs. Fixing those bugs was always complicated and took time, which we often did not have. Delegating this task to a larger community (in this case, the systemd community) made things much easier for us.
I realize that many of these problems could be solved with some work, and some were already solved by other SysV-based init systems. There was no system that solved all of these problems and did so in a realiable manner, as systemd does.
So, for me personally, when systemd came along, it solved all the problems I ever had with system initialization. What most systemd critics consider "bloat", I consider necessary complexity to solve a complex problem generically. You can say what you want about Poettering, but he actually realized what the problems with system initialization were and provided a working solution.
I could go on for hours, but this should be a good summary.
OP's message is very Arch specific. I know because I wrote it.
The FSF is actually lying on that site! Let's have a look:
The name of the operating system is "Arch Linux", a system called "Arch GNU/Linux" does not exist - the FSF can wish that every distro changes their name to contain GNU, but they can't simply change names on their own.
There is a policy, it's just not the one the FSF would like to see: If it is legally possible to include software, and we want that software, then we include it.
That is simply incorrect. The
linuxpackage contains only GPL2-compatible code. There are binary blobs, they are contained in thelinux-firmwarepackage and they never run on Arch, but are uploaded to the hardware. If someone wants to have a GPL-compatible system, they can replace thelinux-firmwarepackage and remove the proprietary blobs.That part is true. Arch Linux has never been a free software advocate and will never be. It consists of mostly free software, and free software is preferred where possible - but sadly, it isn't always possible.
Everything that Arch releases is signed ([1]), so it is possible to verify that whatever you downloaded was created by an Arch Linux developer. However, there are no background checks and no security audits. A developer could be evil, or his private key could be stolen. In such a case, all that can be done is revoking that developer's key (but then, damage has already been done).
[1] I am actually working on delivering cryptographically signed netboot images, so that even netboot from a public ftp server is secure. However, I don't get to it too much, so it might take some time until I actually finish that work.
That used to be the Gentoo wiki. In the early days, the Arch wiki was basically a collection of links to the Gentoo wiki.