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
161
162
163
164
165
166
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mageia-dev] Issues with dracut
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Issues%20with%20dracut&In-Reply-To=%3C4EEBD1DA.7010600%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="010540.html">
<LINK REL="Next" HREF="010541.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mageia-dev] Issues with dracut</H1>
<B>Colin Guthrie</B>
<A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Issues%20with%20dracut&In-Reply-To=%3C4EEBD1DA.7010600%40colin.guthr.ie%3E"
TITLE="[Mageia-dev] Issues with dracut">mageia at colin.guthr.ie
</A><BR>
<I>Sat Dec 17 00:18:50 CET 2011</I>
<P><UL>
<LI>Previous message: <A HREF="010540.html">[Mageia-dev] Issues with dracut
</A></li>
<LI>Next message: <A HREF="010541.html">[Mageia-dev] Issues with dracut
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#10542">[ date ]</a>
<a href="thread.html#10542">[ thread ]</a>
<a href="subject.html#10542">[ subject ]</a>
<a href="author.html#10542">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>'Twas brillig, and JA Magallon at 16/12/11 22:52 did gyre and gimble:
><i> On Fri, 16 Dec 2011 12:35:22 +0000
</I>><i> Colin Guthrie <<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">mageia at colin.guthr.ie</A>> wrote:
</I>><i>
</I>>><i> Hiya,
</I>>><i>
</I>>><i> 'Twas brillig, and JA Magallon at 16/12/11 12:06 did gyre and gimble:
</I>>>><i> After those couple previous thread it looks like move to dracut is
</I>>>><i> ongoing, so I decided to try it.
</I>>><i>
</I>>><i> Good! This is exactly the kind of feedback we need!
</I>>><i>
</I>>>><i> I found a couple problems:
</I>>>><i>
</I>>>><i> - dracut inists on loading nouveau driver. With mknitrd, just booting with nokmsboot
</I>>>><i> works. Booting with a dracut generated initrd ignores that. I think it is plymouth
</I>>>><i> that forces it, even if I added 'blacklist nouveau' in a .conf file in modprobe.d:
</I>>>><i>
</I>>>><i> dracut -f:
</I>>><i>
</I>>><i> I'll include it but if it's blacklisted, it shouldn't ultimately be used
</I>>><i> in the ramfs even if it's included. That said, it's clearly inefficient
</I>>><i> to include it if it is blacklisted so we should try and fix that. Anssi,
</I>>><i> could this be your code to detect the h/w that causes it to bypass any
</I>>><i> blacklist checks (not sure if there are actually any blacklist checks
</I>>><i> when building the initrd... not relaly looked at it much)ç
</I>><i>
</I>><i> Clue...
</I>><i> Let's state all my findings. As 'nokmsboot' was ignored, i remembered CentOS
</I>><i> where the nvidia installer achived the same blacklisting nouveau.
</I>><i> I added the blacklist in /etc/modprobe.d/display-driver.conf, which is a
</I>><i> symlink to /etc/nvidia-current/modprobe.conf. It didn't work.
</I>><i> After the fiasco with symlinks in systemd, i tried creting a new file.
</I>><i> And it worked. So there is something strange with symlinked files...
</I>
That's interesting... The code in question:
./modules.d/90kernel-modules/module-setup.sh: for i in $(find
/etc/modprobe.d/ -type f -name '*.conf'); do
So it only finds files.
If I change "find" to "find -L" this should fix up this problem (when
the files are installed, links are dereferenced so that won't be a problem).
This should avoid any such similar problems.
Also I believe it's pointless to go into any subfolders here, so adding
also a -maxdepth 1 should cut down on unnecessary includes.
>>><i> - initrd from dracut fails to detect one of my drives, and booting stops:
</I>>><i>
</I>>><i> OK, this is more interesting.
</I>...
><i>
</I>><i> I found the problem:
</I>><i>
</I>><i> lsscsi:
</I>><i> werewolf:~/dr# cat lsscsi*
</I>><i> [0:0:0:0] disk ATA ST3250310AS 3.AA /dev/sda
</I>><i> [1:0:0:0] disk ATA WDC WD3200AVJS-6 12.0 /dev/sdb
</I>><i> [2:0:0:0] disk ATA ST3320620AS 3.AA /dev/sdc
</I>><i> [3:0:0:0] disk ATA ST3500418AS CC38 /dev/sdh
</I>><i> [5:0:0:0] cd/dvd HL-DT-ST DVDRAM GH22NS50 TN01 /dev/sr0
</I>><i> [6:0:0:0] disk Generic USB CF Reader 0.00 /dev/sdd
</I>><i> [6:0:0:1] disk Generic USB SD Reader 0.00 /dev/sde
</I>><i> [6:0:0:2] disk Generic USB MS Reader 0.00 /dev/sdf
</I>><i> [6:0:0:3] disk Generic USB SM Reader 0.00 /dev/sdg
</I>><i>
</I>><i> The disk has been renamed as sdh
</I>
><i> I changed the mounting points from devices to labels and all worked fine.
</I>><i>
</I>><i> This will probably not be an issue with standard install, using UUIDs,
</I>><i> but the real problem is that drive name asssignment is even more random
</I>><i> (well, interlaced ;)).
</I>
Hmm, interesting. Not quite sure why it's doing that but as it's using
udev rather than any manual driver loading, it's likely a more
predicable system overall in the long term.
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="010540.html">[Mageia-dev] Issues with dracut
</A></li>
<LI>Next message: <A HREF="010541.html">[Mageia-dev] Issues with dracut
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#10542">[ date ]</a>
<a href="thread.html#10542">[ thread ]</a>
<a href="subject.html#10542">[ subject ]</a>
<a href="author.html#10542">[ 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>
|