diff options
Diffstat (limited to 'perl-install/devices.pm')
-rw-r--r-- | perl-install/devices.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/devices.pm b/perl-install/devices.pm index 3b2761ad0..719472cea 100644 --- a/perl-install/devices.pm +++ b/perl-install/devices.pm @@ -176,8 +176,8 @@ sub entry { # Try to access directly the device # Now device mapper devices are links and do not appear in /proc or /sys unless ($type) { - if (-e "$::prefix/dev/$_") { - my (undef,undef,$mode,undef,undef,undef,$rdev,undef) = stat("$::prefix/dev/$_"); + if (-e "/dev/$_") { + my (undef,undef,$mode,undef,undef,undef,$rdev,undef) = stat("/dev/$_"); ($major, $minor) = unmakedev($rdev); $type = $mode & c::S_IFMT(); } |