summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/bootloader.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index 8116c7d2b..84251663f 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -827,6 +827,10 @@ sub set_profiles {
sub get_of_dev {
my ($unix_dev) = @_;
+
+ eval { fs::mount('none', '$::prefix/sys', 'sysfs', 0) } if -d "$::prefix/sys/devices";
+ devices::make("$::prefix$unix_dev");
+
my $of_dev;
run_program::rooted_or_die($::prefix, "/usr/sbin/ofpath", ">", \$of_dev, $unix_dev);
chomp($of_dev);