summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/2011-December/010667.html
diff options
context:
space:
mode:
Diffstat (limited to 'zarb-ml/mageia-dev/2011-December/010667.html')
-rw-r--r--zarb-ml/mageia-dev/2011-December/010667.html172
1 files changed, 172 insertions, 0 deletions
diff --git a/zarb-ml/mageia-dev/2011-December/010667.html b/zarb-ml/mageia-dev/2011-December/010667.html
new file mode 100644
index 000000000..864759f49
--- /dev/null
+++ b/zarb-ml/mageia-dev/2011-December/010667.html
@@ -0,0 +1,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>