Hi,

I've ported this patch http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=277418 
(for v 1.04-1 on debian) for v 2.4.5-1 (bug seems to be present again).
Dee attachment.

IT enable cciss HP raid array device naming scheme support in the following 
command: si_mkautoinstallscript --image oscarimage
devices like /dev/cciss/c0d0p0 are now correctly handeled and 
/var/lib/systemimager/scripts/oscarimage.master generated script has no more 
trailing garbage "p" in disk device names or missin "p" in partition naming 
(was c0d06 instead of c0d0p6 for example).
Generated 
/var/lib/systemimager/images/oscarimage/etc/systemconfig/systemconfig.conf 
seems ok as well.

As I don't know perl language, please check that this patch is correct and does 
not introduce other errors. (hopefully, I used the old debian pathc which 
hopefully was correct at that time).

Regards,

Olivier.

-- 
        Olivier LAHAYE
        CEA Saclay
        DRT-LIST-DETECS-SSTM
--- /usr/lib/systeminstaller/SystemInstaller/Partition/IA.pm.orig	2009-10-30 19:48:27.000000000 +0100
+++ /usr/lib/systeminstaller/SystemInstaller/Partition/IA.pm	2009-11-10 10:02:01.000000000 +0100
@@ -352,7 +352,11 @@
         foreach my $dev (keys(%{$DISKS{PARTITIONS}})) {
                 # Figure out the diskname
                 my $diskname=$dev;
-                $diskname=~s/[0-9]*$//;
+                if ($dev=~/c[0-9]+d[0-9]+p[0-9]*$/) {
+                        $diskname=~s/p[0-9]*$//;
+                } else {
+                        $diskname=~s/[0-9]*$//;
+                }
                 $diskname=~s/^\/dev\///;
                 my $parnum=$dev;
                 $parnum=~s/\/dev\/$diskname//;
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Oscar-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oscar-devel

Reply via email to