summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/NEWS4
-rw-r--r--perl-install/devices.pm5
-rw-r--r--perl-install/install/NEWS4
3 files changed, 10 insertions, 3 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS
index a1a1c54d6..8e9970ae5 100644
--- a/perl-install/NEWS
+++ b/perl-install/NEWS
@@ -1,3 +1,7 @@
+- diskdrake:
+ o use sysfs in order to discover major/minor for SCSI like devices
+ since they're dynamic with kernel-2.6.28+
+
Version 11.75 - 17 December 2008
- handle new driver:
diff --git a/perl-install/devices.pm b/perl-install/devices.pm
index 6b091be27..515f9c210 100644
--- a/perl-install/devices.pm
+++ b/perl-install/devices.pm
@@ -77,10 +77,9 @@ sub entry {
if (/^0x([\da-f]{3,4})$/i) {
$type = c::S_IFBLK();
($major, $minor) = unmakedev(hex $1);
- } elsif (/^sd(.)(\d{0,2})/) {
+ } elsif (/^(sd.)(\d{0,2})/) {
+ ($major, $minor) = split(':', chomp_(cat_("/sys/block/$1/$1$2/dev")));
$type = c::S_IFBLK();
- $major = 8;
- $minor = 16 * (ord($1) - ord('a')) + ($2 || 0);
} elsif (/^hd(.)(\d{0,2})/) {
$type = c::S_IFBLK();
($major, $minor) =
diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS
index 6b5ede2e1..123ef78c7 100644
--- a/perl-install/install/NEWS
+++ b/perl-install/install/NEWS
@@ -1,3 +1,7 @@
+- partitionning:
+ o use sysfs in order to discover major/minor for SCSI like devices
+ since they're dynamic with kernel-2.6.28+
+
Version 11.75 - 17 December 2008
- force to use static input devices again