diff options
Diffstat (limited to 'zarb-ml/mageia-dev/2011-December/010698.html')
-rw-r--r-- | zarb-ml/mageia-dev/2011-December/010698.html | 143 |
1 files changed, 143 insertions, 0 deletions
diff --git a/zarb-ml/mageia-dev/2011-December/010698.html b/zarb-ml/mageia-dev/2011-December/010698.html new file mode 100644 index 000000000..5b0d3cf00 --- /dev/null +++ b/zarb-ml/mageia-dev/2011-December/010698.html @@ -0,0 +1,143 @@ +<!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=%3CCAONrEtbJAXNHf41O5nG19cxn1UtK%3DkHcW_oUhknreCAt_g_Qkw%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="010681.html"> + <LINK REL="Next" HREF="010683.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=%3CCAONrEtbJAXNHf41O5nG19cxn1UtK%3DkHcW_oUhknreCAt_g_Qkw%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 13:20:25 CET 2011</I> + <P><UL> + <LI>Previous message: <A HREF="010681.html">[Mageia-dev] [soft-commits] [2494] Port stage2 to use udev. +</A></li> + <LI>Next message: <A HREF="010683.html">[Mageia-dev] Fwd: Re: [Cooker] System can stall under heavy IOs with slow storage devices +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#10698">[ date ]</a> + <a href="thread.html#10698">[ thread ]</a> + <a href="subject.html#10698">[ subject ]</a> + <a href="author.html#10698">[ author ]</a> + </LI> + </UL> + <HR> +<!--beginarticle--> +<PRE>On 20 December 2011 12:59, Colin Guthrie <<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">colin at mageia.org</A>> wrote: +><i> 'Twas brillig, and Thierry Vignaud at 20/12/11 11:42 did gyre and gimble: +</I>>>>>><i> +    # Start up udev and trigger cold plugs +</I>>>>>><i> +    run_program::run("mount", "-t", "devtmpfs", "-o", "mode=0755,nosuid", +</I>>>>>><i> "devtmpfs", "/dev"); +</I>>>>>><i> +    mkdir "/dev/pts", 0755; +</I>>>>>><i> +    run_program::run("mount", "-t", "devpts", "-o", +</I>>>>>><i> "gid=5,mode=620,noexec,nosuid", "devpts", "/dev/pts"); +</I>>>>>><i> +    mkdir "/dev/shm", 0755; +</I>>><i> +</I>>><i> This one should be better included in stage1 with other /dev stuff IMHO +</I>>><i> See images/make_boot_img +</I>><i> +</I>><i> With my earlier comment about stage1+dracut, I would tend to agree. +</I>><i> Perhaps all this stuff can be in stage1 instead? +</I> +indeed + +>>>>><i> +    run_program::run("udevadm", "trigger", "--type=subsystems", +</I>>>>>><i> "--action=add"); +</I>>>>>><i> +    run_program::run("udevadm", "trigger", "--type=devices", +</I>>>>>><i> "--action=add"); +</I>>><i> +</I>>><i> Since this will forces us to wait, you should either display a "please +</I>>><i> wait dialog" +</I>>><i> or better not run this as we'll only look at block devices quite a lot later +</I>>><i> after accepting license & loading disks modules +</I>><i> +</I>><i> Technically true, although this requires me to have a bit more +</I>><i> understanding of how things work with the installer which I'd ideally +</I>><i> like to avoid!.... :p +</I> +here we initialize the installer then loop over the steps (see +perl-install/install/steps_list.pm): +- choose language +- accepting license +- THEN load hd which will triggers udev to scan for LV or the like + +So it's useless & not user friendly to force waiting for LVs here when +we know none will be found + +>>><i> Cool, thanks. I'm not a perl-master so feel free to tidy this commit up +</I>>>><i> a bit if you have time, otherwise I'll try and tidy up my mess this +</I>>>><i> evening :) +</I>>><i> +</I>>><i> There's no urgency so it's better if done by you so that +</I>>><i> you eventually became a co maintainer of drakx :-) +</I>><i> +</I>><i> I have a funny feeling that I'm being tricked into something here.... :p +</I> +It's not that hard :-) + +>><i> BTW you may eventually include udev in rescue too +</I>>><i> (but only once it's done in stage2) +</I>>><i> See rescue/ && rescue/devices.pl +</I>><i> +</I>><i> Yeah it's needed in rescue too as I think I mentioned in an earlier +</I>><i> email, but this is easier to get working I think. +</I> +BTW if you could look at those LVM/DM bugs in rescue: +<A HREF="https://bugs.mageia.org/buglist.cgi?cmdtype=runnamed&namedcmd=drakx-installer-rescue">https://bugs.mageia.org/buglist.cgi?cmdtype=runnamed&namedcmd=drakx-installer-rescue</A> +</PRE> + + + + + + + + + + + + + + + + + + + + + + + + + + + + +<!--endarticle--> + <HR> + <P><UL> + <!--threads--> + <LI>Previous message: <A HREF="010681.html">[Mageia-dev] [soft-commits] [2494] Port stage2 to use udev. +</A></li> + <LI>Next message: <A HREF="010683.html">[Mageia-dev] Fwd: Re: [Cooker] System can stall under heavy IOs with slow storage devices +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#10698">[ date ]</a> + <a href="thread.html#10698">[ thread ]</a> + <a href="subject.html#10698">[ subject ]</a> + <a href="author.html#10698">[ 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> |