summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/attachments/20120404/32fe00a8/attachment-0001.obj
blob: 0fab4a60a386b888b617404c9012da445f4a77b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Index: bootloader.pm
===================================================================
--- bootloader.pm	(revision 3913)
+++ bootloader.pm	(working copy)
@@ -161,9 +161,16 @@
 sub update_splash {
     my ($bootloader) = @_;
 
+    my %real_initrd_entries;
     foreach (@{$bootloader->{entries}}) {
-	add_boot_splash($_->{initrd}, $_->{vga} || $bootloader->{vga}) if $_->{initrd};
+	if ($_->{initrd}) {
+	    my $initrd = expand_symlinks;
+	    $real_initrd_entries[$initrd] = $_;
+	}
     }
+    foreach (values %real_initrd_entries) {
+	add_boot_splash($_->{initrd}, $_->{vga} || $bootloader->{vga});
+    }
 }
 
 sub read {