summaryrefslogtreecommitdiffstats
path: root/perl-install/fsedit.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-09-03 12:26:27 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-09-03 12:26:27 +0000
commita384dec9ada016af7631ecb2b29bd972045dc9b2 (patch)
tree35e469c0c929a20dc19f62081567eb51cc82b40b /perl-install/fsedit.pm
parentdf097c88179d6241e0f8155f56e6c6fdbecb344a (diff)
downloaddrakx-a384dec9ada016af7631ecb2b29bd972045dc9b2.tar
drakx-a384dec9ada016af7631ecb2b29bd972045dc9b2.tar.gz
drakx-a384dec9ada016af7631ecb2b29bd972045dc9b2.tar.bz2
drakx-a384dec9ada016af7631ecb2b29bd972045dc9b2.tar.xz
drakx-a384dec9ada016af7631ecb2b29bd972045dc9b2.zip
fix mtab reading and pseudo-device use
Diffstat (limited to 'perl-install/fsedit.pm')
-rw-r--r--perl-install/fsedit.pm7
1 files changed, 4 insertions, 3 deletions
diff --git a/perl-install/fsedit.pm b/perl-install/fsedit.pm
index 42a6b7311..2c96c39fc 100644
--- a/perl-install/fsedit.pm
+++ b/perl-install/fsedit.pm
@@ -165,8 +165,9 @@ sub hds {
}
- my $l = { %{ empty_all_hds() }, hds => \@hds, lvms => \@lvms, raids => \@raids };
- $l;
+ my $all_hds = { %{ empty_all_hds() }, hds => \@hds, lvms => \@lvms, raids => \@raids };
+ fs::get_major_minor(get_all_fstab($all_hds));
+ $all_hds;
}
@@ -200,7 +201,7 @@ sub readProcPartitions {
foreach my $part (@parts) {
my $dev;
if ($devfs_like) {
- $dev = -e "/dev/$part->{dev}" ? $part->{dev} : sprintf("%x%02x", $part->{major}, $part->{minor});
+ $dev = -e "/dev/$part->{dev}" ? $part->{dev} : sprintf("0x%x%02x", $part->{major}, $part->{minor});
$part->{rootDevice} = $devfs2normal{dirname($part->{dev}) . '/disc'};
} else {
$dev = $part->{dev};