summaryrefslogtreecommitdiffstats
path: root/perl-install/install/install2.pm
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2018-01-20 21:51:55 +0000
committerPascal Terjan <pterjan@mageia.org>2018-01-20 22:02:10 +0000
commit18e0d250179de2f06bc2e7980b081d0b257cc069 (patch)
treec7760ec91116c7de36b97f449baf3725651336a0 /perl-install/install/install2.pm
parent9d1b6921f10392d02ca9f2c278272af910e923f3 (diff)
downloaddrakx-18e0d250179de2f06bc2e7980b081d0b257cc069.tar
drakx-18e0d250179de2f06bc2e7980b081d0b257cc069.tar.gz
drakx-18e0d250179de2f06bc2e7980b081d0b257cc069.tar.bz2
drakx-18e0d250179de2f06bc2e7980b081d0b257cc069.tar.xz
drakx-18e0d250179de2f06bc2e7980b081d0b257cc069.zip
Catch sys_kernel_debug failure for local install
Some systems (for example some virtual machines) don't have any USB devices and the mounting fails as usbcore is not loaded. This is the case for every other call of it and just means USB devices don't get detected.
Diffstat (limited to 'perl-install/install/install2.pm')
-rw-r--r--perl-install/install/install2.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/install/install2.pm b/perl-install/install/install2.pm
index cf8ff7da8..de9ee5217 100644
--- a/perl-install/install/install2.pm
+++ b/perl-install/install/install2.pm
@@ -391,7 +391,7 @@ sub init_local_install {
push @::auto_steps,
# 'selectLanguage', 'selectKeyboard', 'miscellaneous', 'selectInstallClass',
'doPartitionDisks', 'formatPartitions';
- fs::mount::sys_kernel_debug(''); #- do it now so that when_load doesn't do it
+ eval { fs::mount::sys_kernel_debug(''); }; #- do it now so that when_load doesn't do it
$o->{nomouseprobe} = 1;
$o->{mouse} = mouse::fullname2mouse('Universal|Any PS/2 & USB mice');
}