diff options
Diffstat (limited to 'zarb-ml/mageia-dev/2011-December/010670.html')
-rw-r--r-- | zarb-ml/mageia-dev/2011-December/010670.html | 185 |
1 files changed, 185 insertions, 0 deletions
diff --git a/zarb-ml/mageia-dev/2011-December/010670.html b/zarb-ml/mageia-dev/2011-December/010670.html new file mode 100644 index 000000000..7c291d403 --- /dev/null +++ b/zarb-ml/mageia-dev/2011-December/010670.html @@ -0,0 +1,185 @@ +<!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=%3CCAONrEtb14fH7sPrZNZNZj04kScmT-k6ULwPnVZcor7R23wH58Q%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="010831.html"> + <LINK REL="Next" HREF="010681.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=%3CCAONrEtb14fH7sPrZNZNZj04kScmT-k6ULwPnVZcor7R23wH58Q%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:42:38 CET 2011</I> + <P><UL> + <LI>Previous message: <A HREF="010831.html">[Mageia-dev] [soft-commits] [2494] Port stage2 to use udev. +</A></li> + <LI>Next message: <A HREF="010681.html">[Mageia-dev] [soft-commits] [2494] Port stage2 to use udev. +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#10670">[ date ]</a> + <a href="thread.html#10670">[ thread ]</a> + <a href="subject.html#10670">[ subject ]</a> + <a href="author.html#10670">[ author ]</a> + </LI> + </UL> + <HR> +<!--beginarticle--> +<PRE>On 20 December 2011 12:19, Colin Guthrie <<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">colin at guthr.ie</A>> wrote: +>>><i>  get_needed_files: xs +</I>>>><i>      REP4PMS=$(REP4PMS) ../../tools/install-xml-file-list share/list.xml +</I>>>><i> $(DEST) +</I>>>><i> +    mkdir -p $(DEST)/run +</I>>><i> +</I>>><i> That won't work. stage2 is mounted by stage1 in /tmp/stage2 +</I>>><i> so you want to create & include it in stage1 +</I>><i> +</I>><i> Right... strangely enough some stuff still worked fine... e.g. +</I>><i> /lib/udev/udevd exists inside the installer shell.... so that's why I +</I>><i> thought all was well. I double check a few things. +</I>><i> +</I>><i> Technically it's not super important that /run exists anyway as I mkdir +</I>><i> it later, so this bit can probably be dropped. +</I> +Either you create it in stage1 or in the sub starting udev, but anyway +the Makefile should be reverted + +>>><i> --- drakx/trunk/perl-install/install/install2.pm     2011-12-19 21:36:04 UTC +</I>>>><i> (rev 2493) +</I>>>><i> +++ drakx/trunk/perl-install/install/install2.pm     2011-12-19 22:47:15 UTC +</I>>>><i> (rev 2494) +</I>>>><i> @@ -395,6 +395,24 @@ +</I>>>><i>      eval { fs::mount::mount('none', '/sys', 'sysfs', 1) }; +</I>>>><i>      eval { touch('/root/non-chrooted-marker.DrakX') }; #- helps +</I>>>><i> distinguishing /root and /mnt/root when we don't know if we are chrooted +</I>>>><i> +</I>>>><i> +    # Ensure /run is mounted +</I>>>><i> +    mkdir "/run", 0755; +</I>>>><i> +    run_program::run("mount -t tmpfs -o mode=0755,nosuid,nodev tmpfs +</I>>>><i> /run"); +</I> +having perms from both chown & mount is maybe a little too much + +>>><i> +    mkdir "/run/udev", 0755; +</I>>>><i> +    mkdir "/run/udev/rules.d", 0755; +</I> +can be simplified mkdir_p("/run/udev/rules.d"). +The perms should be OK through umask + +>>><i> +    $ENV{UDEVRULESD} = "/run/udev/rules.d"; +</I>>>><i> + +</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> +This one should be better included in stage1 with other /dev stuff IMHO +See images/make_boot_img + +>>><i> +    run_program::run("mount", "-t", "tmpfs", "-o", +</I>>>><i> "mode=1777,nosuid,nodev", "tmpfs", "/dev/shm"); +</I>>>><i> + +</I>>>><i> +    run_program::run("/lib/udev/udevd", "--daemon", +</I>>>><i> "--resolve-names=never"); +</I> +I guess it auto detach with --daemon? +If not we could use "raw({ detach => 1}," instead of "run(" +I think you wan + +>>><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> +Since this will forces us to wait, you should either display a "please +wait dialog" +or better not run this as we'll only look at block devices quite a lot later +after accepting license & loading disks modules + +>><i> 3) which bring me to the last item: you should run perl_checker +</I>>><i>     See /usr/share/doc/perl_checker/perl_checker.html & +</I>>><i>     /usr/share/doc/perl-MDK-Common/tutorial.html +</I>>><i> It can be simply called from within emacs (or vim) +</I>><i> +</I>><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> +There's no urgency so it's better if done by you so that +you eventually became a co maintainer of drakx :-) + +BTW you may eventually include udev in rescue too +(but only once it's done in stage2) +See rescue/ && rescue/devices.pl +</PRE> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +<!--endarticle--> + <HR> + <P><UL> + <!--threads--> + <LI>Previous message: <A HREF="010831.html">[Mageia-dev] [soft-commits] [2494] Port stage2 to use udev. +</A></li> + <LI>Next message: <A HREF="010681.html">[Mageia-dev] [soft-commits] [2494] Port stage2 to use udev. +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#10670">[ date ]</a> + <a href="thread.html#10670">[ thread ]</a> + <a href="subject.html#10670">[ subject ]</a> + <a href="author.html#10670">[ 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> |