summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/devices.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/devices.pm b/perl-install/devices.pm
index 8ddba04be..3b2761ad0 100644
--- a/perl-install/devices.pm
+++ b/perl-install/devices.pm
@@ -176,7 +176,7 @@ 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 "/dev/$_") {
+ if (-e "$::prefix/dev/$_") {
my (undef,undef,$mode,undef,undef,undef,$rdev,undef) = stat("$::prefix/dev/$_");
($major, $minor) = unmakedev($rdev);
$type = $mode & c::S_IFMT();