summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2016-03-07 10:25:32 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2016-03-07 17:20:19 +0100
commit7e2d5f1447ad5e269ce8f5eab4a8b8ade7e96f85 (patch)
tree164e6d4657e855b7bed7732a1d60c1b06084bc3e
parent293b869d9c4a3a9bbdcfd8533945ec1c91c4c12c (diff)
downloaddrakx-7e2d5f1447ad5e269ce8f5eab4a8b8ade7e96f85.tar
drakx-7e2d5f1447ad5e269ce8f5eab4a8b8ade7e96f85.tar.gz
drakx-7e2d5f1447ad5e269ce8f5eab4a8b8ade7e96f85.tar.bz2
drakx-7e2d5f1447ad5e269ce8f5eab4a8b8ade7e96f85.tar.xz
drakx-7e2d5f1447ad5e269ce8f5eab4a8b8ade7e96f85.zip
prevent slow boot on first boot (mga#16684)
-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";