summaryrefslogtreecommitdiffstats
path: root/perl-install/devices.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-10-06 12:13:55 +0000
committerOlivier Blin <oblin@mandriva.com>2009-10-06 12:13:55 +0000
commitd15bf4424ba6bc79afcf780fdef6228172d16c8e (patch)
treea96e81a47cfa679c7405dceb69761d61b459bf26 /perl-install/devices.pm
parente3363d6bd2f6eed8323f622e2480b40c85c3ed58 (diff)
downloaddrakx-d15bf4424ba6bc79afcf780fdef6228172d16c8e.tar
drakx-d15bf4424ba6bc79afcf780fdef6228172d16c8e.tar.gz
drakx-d15bf4424ba6bc79afcf780fdef6228172d16c8e.tar.bz2
drakx-d15bf4424ba6bc79afcf780fdef6228172d16c8e.tar.xz
drakx-d15bf4424ba6bc79afcf780fdef6228172d16c8e.zip
add back ram devices support (used by draklive, broken in 258009)
Diffstat (limited to 'perl-install/devices.pm')
-rw-r--r--perl-install/devices.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/perl-install/devices.pm b/perl-install/devices.pm
index bdac41a8a..26c7599a0 100644
--- a/perl-install/devices.pm
+++ b/perl-install/devices.pm
@@ -77,6 +77,10 @@ sub entry {
if (/^0x([\da-f]{3,4})$/i) {
$type = c::S_IFBLK();
($major, $minor) = unmakedev(hex $1);
+ } elsif (/^ram(.*)/) {
+ $type = c::S_IFBLK();
+ $major = 1;
+ $minor = $1 eq '' ? 1 : $1;
} elsif (m|^rd/c(\d+)d(\d+)(p(\d+))?|) {
# dac 960 "rd/cXdXXpX"
$type = c::S_IFBLK();