This patch enable the recognition of /boot/initramfs*.img files that now 
replaces initrd files since rhel6.

-- 
  Olivier Lahaye
  CEA DRT/LIST/DCSI/DIR
--- ./pkgsrc/systeminstaller-oscar/trunk/lib/SystemInstaller/Image.pm.orig	2012-06-25 17:52:13.857891926 +0200
+++ ./pkgsrc/systeminstaller-oscar/trunk/lib/SystemInstaller/Image.pm	2012-06-25 17:52:43.316953066 +0200
@@ -138,7 +138,8 @@
     opendir (DIR, "$imagepath/boot")
         or (carp "ERROR: Could not read directory $imagepath!", return undef);
     for my $f (readdir DIR) {
-        if ($f =~ /initrd(.*)$label(.*)/) {
+	# initrd or initramfs must be matched.
+        if ($f =~ /initr(.*)$label(.*)/) {
             closedir (DIR);
             return "/boot/$f";
         }
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Oscar-devel mailing list
Oscar-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oscar-devel

Reply via email to