Gentoo Archives: gentoo-amd64

From: "Canek Peláez Valdés" <caneko@×××××.com>
To: gentoo-amd64@l.g.o
Subject: Re: [gentoo-amd64] Re: Please get me straight about sysvinit vs. systemd, udev vs eudev vs mdev, virtuals and other things...
Date: Mon, 03 Mar 2014 17:58:24
Message-Id: CADPrc80GZC=v_0rkEYZ+iV2cL+_QDXQocnX95jhB5UmLfL4cPA@mail.gmail.com
In Reply to: [gentoo-amd64] Re: Please get me straight about sysvinit vs. systemd, udev vs eudev vs mdev, virtuals and other things... by Duncan <1i5t5.duncan@cox.net>
1 On Mon, Mar 3, 2014 at 11:44 AM, Duncan <1i5t5.duncan@×××.net> wrote:
2 > Tanstaafl posted on Mon, 03 Mar 2014 12:15:50 -0500 as excerpted:
3 >
4 >> Why did udev *merge* with systemd, if there is no long term goal of
5 >> completely and totally subsuming it such that you cannot use udev
6 >> without also using systemd?
7 >>
8 >> Imnsho, since it is a KERNEL thingie, it should have been maintained as
9 >> a totally separate package, or just admit the long term goal and be done
10 >> with it.
11 >
12 > Actually, the point of udev was /userland/ (not kernel) managed device
13 > policy. The idea was to keep the policy out of the kernel, unlike the
14 > now dead 2.4-kernel devfs. (Current kernels do contain a slight variant
15 > of tmpfs called devtmpfs specific to devices, but that doesn't do policy;
16 > it's designed to be managed by userspace, tho in the absence of a
17 > userspace device manager, kernelspace will create default-named device-
18 > nodes there.)
19
20 Exactly.
21
22 > Meanwhile, for the record, the systemd and now udev folks have stated
23 > that they would like to eventually merge udev fully into systemd, and
24 > indeed, it's already shipped as a single tarball, but that udev is likely
25 > to remain a separate binary that can be run stand-alone for some time,
26 > because that's necessary in ordered to be able to keep a somewhat small
27 > initramfs, with udev but without all the trappings of a full-fledged
28 > systemd.
29
30 If you use dracut to generate your initramfs, you can get a
31 full-fledged systemd inside it, so you can use the systemd in the
32 initramfs to start the systemd in the real filesystem. I use it like
33 that. Total size of the "bloated" initramfs? 11 megabytes. 10,660,755
34 bytes if you want to be precise. It's even reasonable for an embedded
35 system; and I have a lot of stuff there, it can be trimmed to be
36 really small, still keeping systemd inside.
37
38 Lets be clear: udev is *fully* merged into systemd. The share *code*.
39 They are the *same project*. But udev can run without systemd, and
40 that is not going to change. If anyone says otherwise, they are
41 spreading FUD.
42
43 BTW, and not really important, but systemd cannot run without udev.
44
45 > However, with the introduction of kdbus and other changes, I'm wondering
46 > if they'll decide they might as well shoehorn systemd onto the initramfs
47 > as well, and will then subsume the full udev binary as well...
48
49 Systemd is already "shoehorned" into my initramfs, and it works great,
50 thank you very much. I don't understand what you mean by "subsume the
51 full udev binary as well".
52
53 > (This said as an openrc user at least for the time being... even
54 > apparently one of the only people actually running the live-git
55 > openrc-9999, or at least all the bugs filed on it seem to be mine. I've
56 > suspected for some time that I'll eventually switch to systemd, but was
57 > at least originally hoping to avoid it until it quits actively blackholing
58 > nearly everything it comes across and had some reasonable time to
59 > stabilize without gobbling something else up. But when that'll be... who
60 > knows? And I'm getting an itch to try it one of these days, or at least
61 > seriously read up on it with a view to _consider_ trying it, tho if I do
62 > it'll likely still be against my better judgment, since I don't see it
63 > really stabilizing any time soon and I had originally planned to wait for
64 > that. So I guess I sort of fall in the middle in this debate.)
65
66 If you run OpenRC live, I think you'll be fine running systemd, even
67 209/210, which introduced so many changes I've been waiting to upgrade
68 my systems.
69
70 Come to the dark side. We have cookies.
71
72 Regards.
73 --
74 Canek Peláez Valdés
75 Posgrado en Ciencia e Ingeniería de la Computación
76 Universidad Nacional Autónoma de México

Replies