From a44306d2223b47d307519bb1712717c5df4c6a17 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 8 Apr 2004 15:08:24 +0000 Subject: mount /sys before move::init() since move::init() needs it --- perl-install/install2.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/perl-install/install2.pm b/perl-install/install2.pm index e18a243d2..1850cd5d9 100644 --- a/perl-install/install2.pm +++ b/perl-install/install2.pm @@ -431,6 +431,9 @@ sub main { log::openLog(($::testing || $o->{localInstall}) && 'debug.log'); log::l("second stage install running (", any::drakx_version(), ")"); + mkdir '/sys'; + syscall_('mount', (my $_dev = 'none'), (my $_where = '/sys'), (my $_type = 'sysfs'), 0); + if ($::move) { require move; move::init($o); @@ -524,7 +527,6 @@ sub main { eval { $o = $::o = install_any::loadO($o, "patch"); log::l("successfully read patch") } if $patch; eval { modules::load("af_packet") }; - eval { fs::mount('none', '/sys', 'sysfs', 0) }; require harddrake::sound; harddrake::sound::configure_sound_slots(); -- cgit v1.2.1