summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/install/NEWS2
-rw-r--r--perl-install/install/steps.pm8
2 files changed, 10 insertions, 0 deletions
diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS
index 7825d0335..b19c25f89 100644
--- a/perl-install/install/NEWS
+++ b/perl-install/install/NEWS
@@ -1,3 +1,5 @@
+- prevent slow boot on first boot (mga#16684)
+
Version 17.19 - 24 February 2016
- detect nvme devices as block devices (mga#17743)
diff --git a/perl-install/install/steps.pm b/perl-install/install/steps.pm
index 35aa93f9b..a58b70b7c 100644
--- a/perl-install/install/steps.pm
+++ b/perl-install/install/steps.pm
@@ -485,6 +485,14 @@ Consoles 1,3,4,7 may also contain interesting information";
harddrake::autoconf::cpufreq();
harddrake::autoconf::floppy();
+ # prevent slow boot on first boot:
+ my $cfg_file = "$::prefix/etc/sysconfig/harddrake2/kernel";
+ if (-f $cfg_file) {
+ my %kernel_config = getVarsFromSh($cfg_file);
+ $kernel_config{IS_LAPTOP} = bool2text(detect_devices::isLaptop());
+ setVarsInSh($cfg_file, \%kernel_config);
+ }
+
#- for mandrake_firstime
touch "$::prefix/var/lock/TMP_1ST";