diff options
Diffstat (limited to 'zarb-ml/mageia-dev/2012-September/018405.html')
| -rw-r--r-- | zarb-ml/mageia-dev/2012-September/018405.html | 94 | 
1 files changed, 94 insertions, 0 deletions
diff --git a/zarb-ml/mageia-dev/2012-September/018405.html b/zarb-ml/mageia-dev/2012-September/018405.html new file mode 100644 index 000000000..089cfbaea --- /dev/null +++ b/zarb-ml/mageia-dev/2012-September/018405.html @@ -0,0 +1,94 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> +<HTML> + <HEAD> +   <TITLE> [Mageia-dev] [soft-commits] [5526] (mkinitrd) More logging on why initrd generation is skipped +   </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%5B5526%5D%20%28mkinitrd%29%20More%20logging%20on%0A%20why%20initrd%20generation%20is%20skipped&In-Reply-To=%3CCAONrEtaLc5PHyFC3dDm43v1ztG_DzixViK9Gu%3DgSyxVBP0FMcA%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="018408.html"> +   <LINK REL="Next"  HREF="018407.html"> + </HEAD> + <BODY BGCOLOR="#ffffff"> +   <H1>[Mageia-dev] [soft-commits] [5526] (mkinitrd) More logging on why initrd generation is skipped</H1> +    <B>Thierry Vignaud</B>  +    <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20%5Bsoft-commits%5D%20%5B5526%5D%20%28mkinitrd%29%20More%20logging%20on%0A%20why%20initrd%20generation%20is%20skipped&In-Reply-To=%3CCAONrEtaLc5PHyFC3dDm43v1ztG_DzixViK9Gu%3DgSyxVBP0FMcA%40mail.gmail.com%3E" +       TITLE="[Mageia-dev] [soft-commits] [5526] (mkinitrd) More logging on why initrd generation is skipped">thierry.vignaud at gmail.com +       </A><BR> +    <I>Sat Sep  1 17:16:00 CEST 2012</I> +    <P><UL> +        <LI>Previous message: <A HREF="018408.html">[Mageia-dev] [soft-commits] [5525] (mkinitrd) Fix prefix checking in foreign partition check (mga#6966) +</A></li> +        <LI>Next message: <A HREF="018407.html">[Mageia-dev] [soft-commits] [5526] (mkinitrd) More logging on why initrd generation is skipped +</A></li> +         <LI> <B>Messages sorted by:</B>  +              <a href="date.html#18405">[ date ]</a> +              <a href="thread.html#18405">[ thread ]</a> +              <a href="subject.html#18405">[ subject ]</a> +              <a href="author.html#18405">[ author ]</a> +         </LI> +       </UL> +    <HR>   +<!--beginarticle--> +<PRE>On 1 September 2012 16:40,  <<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">root at mageia.org</A>> wrote: +><i> (mkinitrd) More logging on why initrd generation is skipped +</I> +I would have prefer to see this as a temporary patch :-( + +><i> --- drakx/trunk/perl-install/bootloader.pm	2012-09-01 14:40:52 UTC (rev +</I>><i> 5525) +</I>><i> +++ drakx/trunk/perl-install/bootloader.pm	2012-09-01 14:40:53 UTC (rev +</I>><i> 5526) +</I>><i> @@ -110,10 +110,19 @@ +</I>><i>      my ($kernel_version, $bootloader, $entry, $initrd) = @_; +</I>><i> +</I>><i>      my $dir = dirname($initrd); +</I>><i> -    return $initrd if $::testing  # testing mode +</I>><i> -      || -e "$::prefix/$initrd"   # already exists +</I>><i> -        || $initrd =~ /\(hd/      # unrecognized partition +</I>><i> -          || !-d "$::prefix/$dir";# dir doesn't exist (probably !mounted +</I>><i> foreign part) +</I>><i> +    if ($::testing) { +</I>><i> +      log::l("Skipping initrd generation: testing mode"); +</I>><i> +      return $initrd; +</I>><i> +    } elsif (-e "$::prefix/$initrd") { +</I>><i> +      log::l("Skipping initrd generation: already exists"); +</I>><i> +      return $initrd; +</I>><i> +    } elsif ($initrd =~ /\(hd/) { +</I>><i> +      log::l("Skipping initrd generation: unrecognized partition"); +</I>><i> +      return $initrd; +</I>><i> +    } elsif (!-d "$::prefix/$dir") { +</I>><i> +      log::l("Skipping initrd generation: dir doesn't exist (probably +</I>><i> !mounted foreign part)"); +</I>><i> +      return $initrd; +</I>><i> +    } +</I></PRE> + + + + + + + + +<!--endarticle--> +    <HR> +    <P><UL> +        <!--threads--> +	<LI>Previous message: <A HREF="018408.html">[Mageia-dev] [soft-commits] [5525] (mkinitrd) Fix prefix checking in foreign partition check (mga#6966) +</A></li> +	<LI>Next message: <A HREF="018407.html">[Mageia-dev] [soft-commits] [5526] (mkinitrd) More logging on why initrd generation is skipped +</A></li> +         <LI> <B>Messages sorted by:</B>  +              <a href="date.html#18405">[ date ]</a> +              <a href="thread.html#18405">[ thread ]</a> +              <a href="subject.html#18405">[ subject ]</a> +              <a href="author.html#18405">[ 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>  | 
