summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/2011-December/010667.html
blob: 864759f49a28ea9a3f1c1133692f37f9a53807ec (plain)
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
167
168
169
170
171
172
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
 <HEAD>
   <TITLE> [Mageia-dev] [soft-commits] [2494] Port stage2 to use udev.
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20%5Bsoft-commits%5D%20%5B2494%5D%20Port%20stage2%20to%20use%20udev.&In-Reply-To=%3CCAONrEtZg1h2e0kFq5_EtxK%2BSz7dX%3DmVYf-JbHXsFojN6qBkW1A%40mail.gmail.com%3E">
   <META NAME="robots" CONTENT="index,nofollow">
   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
   <LINK REL="Previous"  HREF="010718.html">
   <LINK REL="Next"  HREF="010813.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[Mageia-dev] [soft-commits] [2494] Port stage2 to use udev.</H1>
    <B>Thierry Vignaud</B> 
    <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20%5Bsoft-commits%5D%20%5B2494%5D%20Port%20stage2%20to%20use%20udev.&In-Reply-To=%3CCAONrEtZg1h2e0kFq5_EtxK%2BSz7dX%3DmVYf-JbHXsFojN6qBkW1A%40mail.gmail.com%3E"
       TITLE="[Mageia-dev] [soft-commits] [2494] Port stage2 to use udev.">thierry.vignaud at gmail.com
       </A><BR>
    <I>Tue Dec 20 12:07:33 CET 2011</I>
    <P><UL>
        <LI>Previous message: <A HREF="010718.html">[Mageia-dev] Fwd: Re: [Cooker] System can stall under heavy IOs with slow storage devices
</A></li>
        <LI>Next message: <A HREF="010813.html">[Mageia-dev] [soft-commits] [2494] Port stage2 to use udev.
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#10667">[ date ]</a>
              <a href="thread.html#10667">[ thread ]</a>
              <a href="subject.html#10667">[ subject ]</a>
              <a href="author.html#10667">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>On 19 December 2011 23:47,  &lt;<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">root at mageia.org</A>&gt; wrote:
&gt;<i> Log Message
</I>&gt;<i>
</I>&gt;<i> Port stage2 to use udev.
</I>&gt;<i>
</I>&gt;<i> In order to run dracut in the installer, it is necessary to have a working
</I>&gt;<i> udev setup (specifically /dev/block/* nodes, but there may be other
</I>&gt;<i> requirements).
</I>&gt;<i>
</I>&gt;<i> As dracut is needed by systemd when /usr is on a separate partition, we need
</I>&gt;<i> udev in the installer in order to support systemd generally.
</I>&gt;<i>
</I>&gt;<i> Modified Paths
</I>&gt;<i>
</I>&gt;<i> drakx/trunk/perl-install/install/Makefile
</I>&gt;<i> drakx/trunk/perl-install/install/install2.pm
</I>&gt;<i> drakx/trunk/perl-install/install/share/list.xml
</I>&gt;<i>
</I>&gt;<i> Modified: drakx/trunk/perl-install/install/Makefile
</I>&gt;<i> ===================================================================
</I>&gt;<i> --- drakx/trunk/perl-install/install/Makefile	2011-12-19 21:36:04 UTC (rev
</I>&gt;<i> 2493)
</I>&gt;<i> +++ drakx/trunk/perl-install/install/Makefile	2011-12-19 22:47:15 UTC (rev
</I>&gt;<i> 2494)
</I>&gt;<i> @@ -47,6 +47,7 @@
</I>&gt;<i>
</I>&gt;<i>  get_needed_files: xs
</I>&gt;<i>  	REP4PMS=$(REP4PMS) ../../tools/install-xml-file-list share/list.xml
</I>&gt;<i> $(DEST)
</I>&gt;<i> +	mkdir -p $(DEST)/run
</I>
That won't work. stage2 is mounted by stage1 in /tmp/stage2
so you want to create &amp; include it in stage1

&gt;<i> Modified: drakx/trunk/perl-install/install/install2.pm
</I>&gt;<i> ===================================================================
</I>&gt;<i> --- drakx/trunk/perl-install/install/install2.pm	2011-12-19 21:36:04 UTC
</I>&gt;<i> (rev 2493)
</I>&gt;<i> +++ drakx/trunk/perl-install/install/install2.pm	2011-12-19 22:47:15 UTC
</I>&gt;<i> (rev 2494)
</I>&gt;<i> @@ -395,6 +395,24 @@
</I>&gt;<i>      eval { fs::mount::mount('none', '/sys', 'sysfs', 1) };
</I>&gt;<i>      eval { touch('/root/non-chrooted-marker.DrakX') }; #- helps
</I>&gt;<i> distinguishing /root and /mnt/root when we don't know if we are chrooted
</I>&gt;<i>
</I>&gt;<i> +    # Ensure /run is mounted
</I>&gt;<i> +    mkdir &quot;/run&quot;, 0755;
</I>&gt;<i> +    run_program::run(&quot;mount -t tmpfs -o mode=0755,nosuid,nodev tmpfs
</I>&gt;<i> /run&quot;);
</I>&gt;<i> +    mkdir &quot;/run/udev&quot;, 0755;
</I>&gt;<i> +    mkdir &quot;/run/udev/rules.d&quot;, 0755;
</I>&gt;<i> +    $ENV{UDEVRULESD} = &quot;/run/udev/rules.d&quot;;
</I>&gt;<i> +
</I>&gt;<i> +    # Start up udev and trigger cold plugs
</I>&gt;<i> +    run_program::run(&quot;mount&quot;, &quot;-t&quot;, &quot;devtmpfs&quot;, &quot;-o&quot;, &quot;mode=0755,nosuid&quot;,
</I>&gt;<i> &quot;devtmpfs&quot;, &quot;/dev&quot;);
</I>&gt;<i> +    mkdir &quot;/dev/pts&quot;, 0755;
</I>&gt;<i> +    run_program::run(&quot;mount&quot;, &quot;-t&quot;, &quot;devpts&quot;, &quot;-o&quot;,
</I>&gt;<i> &quot;gid=5,mode=620,noexec,nosuid&quot;, &quot;devpts&quot;, &quot;/dev/pts&quot;);
</I>&gt;<i> +    mkdir &quot;/dev/shm&quot;, 0755;
</I>&gt;<i> +    run_program::run(&quot;mount&quot;, &quot;-t&quot;, &quot;tmpfs&quot;, &quot;-o&quot;,
</I>&gt;<i> &quot;mode=1777,nosuid,nodev&quot;, &quot;tmpfs&quot;, &quot;/dev/shm&quot;);
</I>&gt;<i> +
</I>&gt;<i> +    run_program::run(&quot;/lib/udev/udevd&quot;, &quot;--daemon&quot;,
</I>&gt;<i> &quot;--resolve-names=never&quot;);
</I>&gt;<i> +    run_program::run(&quot;udevadm&quot;, &quot;trigger&quot;, &quot;--type=subsystems&quot;,
</I>&gt;<i> &quot;--action=add&quot;);
</I>&gt;<i> +    run_program::run(&quot;udevadm&quot;, &quot;trigger&quot;, &quot;--type=devices&quot;,
</I>&gt;<i> &quot;--action=add&quot;);
</I>
A few remarks:
1) this is a little big, so better split it this into a new
start_udev() function
2) we prefer the fct(args) style over &quot;fct args&quot;
    (which is enforced by perl_checker)
3) which bring me to the last item: you should run perl_checker
    See /usr/share/doc/perl_checker/perl_checker.html &amp;
    /usr/share/doc/perl-MDK-Common/tutorial.html
It can be simply called from within emacs (or vim)
</PRE>







































<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="010718.html">[Mageia-dev] Fwd: Re: [Cooker] System can stall under heavy IOs with slow storage devices
</A></li>
	<LI>Next message: <A HREF="010813.html">[Mageia-dev] [soft-commits] [2494] Port stage2 to use udev.
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#10667">[ date ]</a>
              <a href="thread.html#10667">[ thread ]</a>
              <a href="subject.html#10667">[ subject ]</a>
              <a href="author.html#10667">[ 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>