1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mageia-dev] RFC: Drop mkinitrd completely in favour of dracut.
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20RFC%3A%20Drop%20mkinitrd%20completely%20in%20favour%20of%20dracut.&In-Reply-To=%3C4EDD2B7D.3060905%40colin.guthr.ie%3E">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="010150.html">
<LINK REL="Next" HREF="010476.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mageia-dev] RFC: Drop mkinitrd completely in favour of dracut.</H1>
<B>Colin Guthrie</B>
<A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20RFC%3A%20Drop%20mkinitrd%20completely%20in%20favour%20of%20dracut.&In-Reply-To=%3C4EDD2B7D.3060905%40colin.guthr.ie%3E"
TITLE="[Mageia-dev] RFC: Drop mkinitrd completely in favour of dracut.">mageia at colin.guthr.ie
</A><BR>
<I>Mon Dec 5 21:37:17 CET 2011</I>
<P><UL>
<LI>Previous message: <A HREF="010150.html">[Mageia-dev] RFC: Drop mkinitrd completely in favour of dracut.
</A></li>
<LI>Next message: <A HREF="010476.html">[Mageia-dev] RFC: Drop mkinitrd completely in favour of dracut.
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#10207">[ date ]</a>
<a href="thread.html#10207">[ thread ]</a>
<a href="subject.html#10207">[ subject ]</a>
<a href="author.html#10207">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>'Twas brillig, and Anssi Hannula at 02/12/11 21:17 did gyre and gimble:
><i> On 02.12.2011 15:57, Anssi Hannula wrote:
</I>>><i> On 02.12.2011 13:28, Colin Guthrie wrote:
</I>>>><i> Hi,
</I>>>><i>
</I>>>><i> Just a suggestion! Should we move wholesale to dracut?
</I>>>><i>
</I>>>><i> It's very easy to hack on, and Harald Hoyer has been very helpful and
</I>>>><i> has merged some of the patches we carried locally (which I mostly copied
</I>>>><i> from Mandriva). Not sure why they were not upstreamed before.
</I>>>><i>
</I>>>><i> There are still a couple patches we carry locally (soon to be less when
</I>>>><i> Harald pushes his git repo and I rebase), but they are pretty trivial,
</I>>>><i> understandable and easily maintainable (mostly they will be stylistic
</I>>>><i> tweaks and naming variations - i.e. very minor).
</I>>>><i>
</I>>>><i> Modprobe rules are included even in the initrd so tweaks there follow
</I>>>><i> through.
</I>>>><i>
</I>>>><i> I'm not necessarily against keeping mkinitrd, but I think we should take
</I>>>><i> the time from now until the beta phase to obsolte mkinitrd and force
</I>>>><i> everyone to use dracut in order to see if there are any issues and then
</I>>>><i> make the call before next beta or rc.
</I>>><i>
</I>>><i> +1
</I>>><i>
</I>>><i> One thing that doesn't work with dracut yet is that it only includes the
</I>>><i> KMS drivers into initramfs if they are loaded at the time of initramfs
</I>>><i> creation, causing unoptimal boot screen when a) initramfs created by the
</I>>><i> installer (I guess), and when b) user has switched a driver non-kms -> kms.
</I>>><i>
</I>>><i> This can probably be solved by some patching of
</I>>><i> modules.d/50plymouth/module-setup.sh, but I haven't looked at it closely
</I>>><i> yet.
</I>><i>
</I>><i> Patch attached. I guess this would remain as a Mageia specific patch as
</I>><i> the wanted behavior is dependant on how the distribution handles driver
</I>><i> switching etc...
</I>><i>
</I>><i> Shall I apply it?
</I>
Just to pick up on this patch, here is a conversation I just had with
Harald on #dracut IRC:
coling> haraldh, the "more interesting" question (for various values of
"more interesting") was about a how hostonly works.... at the moment it
only includes modules that are already loaded... but in some cases you
want to include modules that are not currently loaded but do belong on
the h/w in question.
<coling> haraldh, one of the patches (that we believe might just have to
be a local one for the way we do things) is here:
<A HREF="http://svnweb.mageia.org/packages/cauldron/dracut/current/SOURCES/0508-plymouth-Include-kms-modules-even-if-they-are-not-cu.patch?revision=175507&view=markup">http://svnweb.mageia.org/packages/cauldron/dracut/current/SOURCES/0508-plymouth-Include-kms-modules-even-if-they-are-not-cu.patch?revision=175507&view=markup</A>
<coling> It checks the module aliases against the current h/w. We do
this when we generate the initrd from the installer and include the KMS
modules even although they are not currently loaded.
<coling> I'm not sure if this is a mechanism you want to consider
supporting? e.g. perhaps "hostonly" mode could change to do things this
way (via modaliases) and a new "loadedonly" mode could suppliment
hostonly to give the current behaviour?
<coling> Or perhaps you could make hostonly={no|yes|loaded|hardware}
where yes is just a synonym for "loaded".
<coling> (I didn't write that patch by the way, so i'm just picking up
on the general principal with a view to seeing if the general concept
can be upstreamed)
<haraldh> hostonly, hmm, yes, greping for currently used modules was the
easiest and fastest way
<haraldh> to be more correct, we should do it with the aliases like in
your patch
<haraldh> but that is costly and takes a lot of time
<haraldh> and also the modprobe.conf.d is something one would want
<haraldh> and also install possible helper tools there
<haraldh> so, if you want to factor that one out in a module filter
function, send it to the initramfs mailing list
<haraldh> any help in that area is appreciated and most likely merged :)
So if you fancy working on this, I'm sure it'll get upstreamed :)
Col
--
Colin Guthrie
colin(at)mageia.org
<A HREF="http://colin.guthr.ie/">http://colin.guthr.ie/</A>
Day Job:
Tribalogic Limited <A HREF="http://www.tribalogic.net/">http://www.tribalogic.net/</A>
Open Source:
Mageia Contributor <A HREF="http://www.mageia.org/">http://www.mageia.org/</A>
PulseAudio Hacker <A HREF="http://www.pulseaudio.org/">http://www.pulseaudio.org/</A>
Trac Hacker <A HREF="http://trac.edgewall.org/">http://trac.edgewall.org/</A>
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="010150.html">[Mageia-dev] RFC: Drop mkinitrd completely in favour of dracut.
</A></li>
<LI>Next message: <A HREF="010476.html">[Mageia-dev] RFC: Drop mkinitrd completely in favour of dracut.
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#10207">[ date ]</a>
<a href="thread.html#10207">[ thread ]</a>
<a href="subject.html#10207">[ subject ]</a>
<a href="author.html#10207">[ author ]</a>
</LI>
</UL>
<hr>
<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev
mailing list</a><br>
</body></html>
|