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, <<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>
|