summaryrefslogtreecommitdiffstats
path: root/perl-install/any.pm
diff options
context:
space:
mode:
authorAnssi Hannula <anssi@mageia.org>2011-04-17 14:34:07 +0000
committerAnssi Hannula <anssi@mageia.org>2011-04-17 14:34:07 +0000
commit13d8db0a3216c791c0d0659b47de33790215b570 (patch)
tree2ab0657eaed1d9db4f9204c732a06d7e0e747528 /perl-install/any.pm
parenta34368be185d66de0cd5c590744e8d2e23833ada (diff)
downloaddrakx-13d8db0a3216c791c0d0659b47de33790215b570.tar
drakx-13d8db0a3216c791c0d0659b47de33790215b570.tar.gz
drakx-13d8db0a3216c791c0d0659b47de33790215b570.tar.bz2
drakx-13d8db0a3216c791c0d0659b47de33790215b570.tar.xz
drakx-13d8db0a3216c791c0d0659b47de33790215b570.zip
Add nokmsboot boot option also if the bootloader is installed after setting up a conflicting display driver (e.g. draklive-install).
Diffstat (limited to 'perl-install/any.pm')
-rw-r--r--perl-install/any.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm
index 91300d6f1..874d6ee6e 100644
--- a/perl-install/any.pm
+++ b/perl-install/any.pm
@@ -179,6 +179,11 @@ sub setupBootloaderBefore {
}
}
+ #- set nokmsboot if a conflicting driver is configured.
+ if (-x "$::prefix/sbin/display_driver_helper" && !run_program::rooted($::prefix, "/sbin/display_driver_helper", "--is-kms-allowed")) {
+ bootloader::set_append_simple($bootloader, 'nokmsboot');
+ }
+
#- check for valid fb mode to enable a default boot with frame buffer.
my $vga = $allow_fb && (!detect_devices::matching_desc__regexp('3D Rage LT') &&
!detect_devices::matching_desc__regexp('Rage Mobility [PL]') &&