From 6a6b2e797ca660aedd95d6b6d8041fd95bf21d6e Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Mon, 3 May 2010 15:28:26 +0000 Subject: Look for device inside chroot --- perl-install/devices.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perl-install/devices.pm b/perl-install/devices.pm index 719472cea..8ddba04be 100644 --- a/perl-install/devices.pm +++ b/perl-install/devices.pm @@ -177,7 +177,7 @@ sub entry { # Now device mapper devices are links and do not appear in /proc or /sys unless ($type) { if (-e "/dev/$_") { - my (undef,undef,$mode,undef,undef,undef,$rdev,undef) = stat("/dev/$_"); + my (undef,undef,$mode,undef,undef,undef,$rdev,undef) = stat("$::prefix/dev/$_"); ($major, $minor) = unmakedev($rdev); $type = $mode & c::S_IFMT(); } -- cgit v1.2.1