summaryrefslogtreecommitdiffstats
path: root/perl-install/install/steps.pm
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 /perl-install/install/steps.pm
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)
Diffstat (limited to 'perl-install/install/steps.pm')
-rw-r--r--perl-install/install/steps.pm8
1 files changed, 8 insertions, 0 deletions
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";