Package: fai-nfsroot
Version: 3.1.7
Severity: normal
Tags: patch
device2grub only supports /dev/hd\D and /dev/sd\D hard drives currently.
I'm attaching a patch to add support for /dev/cciss/c\Dd\D and
/dev/ida/c\Dd\D hard drives (HP/Compaq SmartArray RAID logical volumes).
It would be great to add support for more formats so that FAI can be
used with other RAID systems smoothly.
-- System Information:
Debian Release: 4.0
Architecture: amd64 (x86_64)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-4-amd64
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
--- fai/device2grub 2007-03-27 14:44:31.000000000 +0200
+++ fai.new/device2grub 2007-03-27 14:43:09.000000000 +0200
@@ -17,7 +17,7 @@
$map{$olddevice} = $grubdevice;
}
-$device=~ m#^(/dev/[sh]d\D)(\d*)$# || die "Can't match device: $device\n";
+$device=~ m#^(/dev/(?:[sh]d\D|ida/c\d*d\d*|cciss/c\d*d\d*))p*(\d*)$# || die
"Can't match device: $device\n";
my ($disk,$partition) = ($1,$2);
if ($map{$disk}) {