[3.17] Rework device manager handling, split busybox-initscripts
It all started in the 3.16 merge window with a merge request that sparked a lot more pushback than I was expecting.
Granted, the timing was bad, and the proposed changes had more impact than I realized. So @ncopa cherry-picked a few non-controversial changes that could be made before 3.16, and the remainder of the MR was shelved.
Today I'm coming back to discuss changes in the rest of this MR (which I just reworked), that I think would be beneficial for Alpine.
- Split
mdev-conf
andmdev-openrc
frombusybox-initscripts
. - Make
mdev-openrc
,mdevd-openrc
andudev-init-scripts-openrc
all provide thedev-initscripts
virtual package. - Make
alpine-base
depend ondev-initscripts
.
The goal is to have mdev, mdevd and udev all symmetrical, instead of having mdev be privileged because it's provided by busybox and the other device managers be hacks around it. (Eventually, in the future, I would like mdevd to become the default because it can be paired with libudev-zero to provide full udev emulation - whereas mdev cannot - but this is not the point here.)
As @ncopa pointed out, the changes require additional modifications to mkinitfs
, which I am willing and able to provide manpower for: implementing the fixes, testing that things don't break, and communicating clearly and efficiently with other testers. I think the reduction in ad-hocness, which means a reduction in technical debt, is worth the effort in the long run - although @ncopa was 100% right to refuse during the 3.16 merge window.
More generally, and this is more a matter of opinion and totally debatable, I would like functionality to be progressively stripped from busybox-initscripts
, which is a package that gathers a bunch of miscellaneous policy scripts that are only related by the fact that their mechanism is provided by busybox. I don't think this package makes sense from a semantics point of view; it is more logical to provide the policy scripts classified by service, no matter whether or not the implementation of the service is done by busybox. To me, ideally, busybox-initscripts
would be empty, and we'd have virtual packages for every service that is currently defined in it, so support for alternative implementations can be added over time. This would also ease the path to getting out of busybox, or at least providing alternative coreutils/low-level utilities implementations, is there is ever a will from Alpine to do so.