diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2016-03-07 10:25:32 +0100 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2016-03-07 17:20:19 +0100 |
commit | 7e2d5f1447ad5e269ce8f5eab4a8b8ade7e96f85 (patch) | |
tree | 164e6d4657e855b7bed7732a1d60c1b06084bc3e /perl-install/install | |
parent | 293b869d9c4a3a9bbdcfd8533945ec1c91c4c12c (diff) | |
download | drakx-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)
Diffstat (limited to 'perl-install/install')
-rw-r--r-- | perl-install/install/NEWS | 2 | ||||
-rw-r--r-- | perl-install/install/steps.pm | 8 |
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"; |