diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2001-08-14 21:47:26 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2001-08-14 21:47:26 +0000 |
commit | 2061f680fcdd4edadd729b24f1ca26c420eb3947 (patch) | |
tree | a87d81cafae9acf8b18ba8b040a09e1e596d6d02 | |
parent | bcfee626b0241ad53e909d03ac4c31d4a9ce18c6 (diff) | |
download | drakx-backup-do-not-use-2061f680fcdd4edadd729b24f1ca26c420eb3947.tar drakx-backup-do-not-use-2061f680fcdd4edadd729b24f1ca26c420eb3947.tar.gz drakx-backup-do-not-use-2061f680fcdd4edadd729b24f1ca26c420eb3947.tar.bz2 drakx-backup-do-not-use-2061f680fcdd4edadd729b24f1ca26c420eb3947.tar.xz drakx-backup-do-not-use-2061f680fcdd4edadd729b24f1ca26c420eb3947.zip |
add number-only device-name handling (eg: "801" is "sda1")
-rw-r--r-- | perl-install/devices.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/perl-install/devices.pm b/perl-install/devices.pm index 16d95a8ac..be1ece13f 100644 --- a/perl-install/devices.pm +++ b/perl-install/devices.pm @@ -52,7 +52,10 @@ sub entry { my ($type, $major, $minor); local ($_) = @_; - if (/^sd(.)(\d{0,2})/) { + if (/^([\da-f]{3,4})$/i) { + $type = c::S_IFBLK(); + ($major, $minor) = unmakedev(hex $1); + } elsif (/^sd(.)(\d{0,2})/) { $type = c::S_IFBLK(); $major = 8; $minor = 16 * (ord($1) - ord('a')) + ($2 || 0); |