summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/2012-September/018405.html
blob: 089cfbaea600f0b40a26c566e5a1997ca026e95f (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
<!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,  &lt;<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">root at mageia.org</A>&gt; wrote:
&gt;<i> (mkinitrd) More logging on why initrd generation is skipped
</I>
I would have prefer to see this as a temporary patch :-(

&gt;<i> --- drakx/trunk/perl-install/bootloader.pm	2012-09-01 14:40:52 UTC (rev
</I>&gt;<i> 5525)
</I>&gt;<i> +++ drakx/trunk/perl-install/bootloader.pm	2012-09-01 14:40:53 UTC (rev
</I>&gt;<i> 5526)
</I>&gt;<i> @@ -110,10 +110,19 @@
</I>&gt;<i>      my ($kernel_version, $bootloader, $entry, $initrd) = @_;
</I>&gt;<i>
</I>&gt;<i>      my $dir = dirname($initrd);
</I>&gt;<i> -    return $initrd if $::testing  # testing mode
</I>&gt;<i> -      || -e &quot;$::prefix/$initrd&quot;   # already exists
</I>&gt;<i> -        || $initrd =~ /\(hd/      # unrecognized partition
</I>&gt;<i> -          || !-d &quot;$::prefix/$dir&quot;;# dir doesn't exist (probably !mounted
</I>&gt;<i> foreign part)
</I>&gt;<i> +    if ($::testing) {
</I>&gt;<i> +      log::l(&quot;Skipping initrd generation: testing mode&quot;);
</I>&gt;<i> +      return $initrd;
</I>&gt;<i> +    } elsif (-e &quot;$::prefix/$initrd&quot;) {
</I>&gt;<i> +      log::l(&quot;Skipping initrd generation: already exists&quot;);
</I>&gt;<i> +      return $initrd;
</I>&gt;<i> +    } elsif ($initrd =~ /\(hd/) {
</I>&gt;<i> +      log::l(&quot;Skipping initrd generation: unrecognized partition&quot;);
</I>&gt;<i> +      return $initrd;
</I>&gt;<i> +    } elsif (!-d &quot;$::prefix/$dir&quot;) {
</I>&gt;<i> +      log::l(&quot;Skipping initrd generation: dir doesn't exist (probably
</I>&gt;<i> !mounted foreign part)&quot;);
</I>&gt;<i> +      return $initrd;
</I>&gt;<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>