summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnssi Hannula <anssi@mageia.org>2011-04-20 23:32:58 +0000
committerAnssi Hannula <anssi@mageia.org>2011-04-20 23:32:58 +0000
commitc54292c196be18c288e702cad02722c0b066c494 (patch)
treeb148298c325d4667987c8dcb1c3bbae45568237f
parent159bb830dffc2d3bf0250bafcb41c61eebaca799 (diff)
downloaddrakx-c54292c196be18c288e702cad02722c0b066c494.tar
drakx-c54292c196be18c288e702cad02722c0b066c494.tar.gz
drakx-c54292c196be18c288e702cad02722c0b066c494.tar.bz2
drakx-c54292c196be18c288e702cad02722c0b066c494.tar.xz
drakx-c54292c196be18c288e702cad02722c0b066c494.zip
service_harddrake: move display driver check block after all hardware
configuration code
-rwxr-xr-xperl-install/standalone/service_harddrake24
1 files changed, 12 insertions, 12 deletions
diff --git a/perl-install/standalone/service_harddrake b/perl-install/standalone/service_harddrake
index e42b82bc1..27d8cdb6d 100755
--- a/perl-install/standalone/service_harddrake
+++ b/perl-install/standalone/service_harddrake
@@ -260,18 +260,6 @@ foreach my $card (@cards) {
}
}
-if (!$reboot_needed && text2bool($cfg{HANDLE_KMS_BOOT_CONFIG})) {
- if (-x "/sbin/display_driver_helper" && system("display_driver_helper", "--check-loaded") != 0) {
- # incorrect driver is loaded, X.org can't start (e.g. proprietary driver loaded while free driver in use,
- # or free driver loaded while vesa is configured).
- $reboot_needed |= Xconfig::various::setup_kms();
- } elsif (!$reboot_needed && -e "/dev/.late_kms") {
- # initrd didn't load the KMS driver; non-fatal but ugly, fix it for next boot
- unlink("/dev/.late_kms");
- Xconfig::various::setup_kms();
- }
-}
-
my $is_globetrotter = -f '/usr/sbin/mdkmove';
my (%config, $wait);
@@ -430,6 +418,18 @@ foreach my $hw_class (@harddrake::data::tree) {
log::explanations("created file $last_boot_config");
Storable::store(\%config, $last_boot_config);
+if (!$reboot_needed && text2bool($cfg{HANDLE_KMS_BOOT_CONFIG})) {
+ if (-x "/sbin/display_driver_helper" && system("display_driver_helper", "--check-loaded") != 0) {
+ # incorrect driver is loaded, X.org can't start (e.g. proprietary driver loaded while free driver in use,
+ # or free driver loaded while vesa is configured).
+ $reboot_needed |= Xconfig::various::setup_kms();
+ } elsif (!$reboot_needed && -e "/dev/.late_kms") {
+ # initrd didn't load the KMS driver; non-fatal but ugly, fix it for next boot
+ unlink("/dev/.late_kms");
+ Xconfig::various::setup_kms();
+ }
+}
+
# Handle $reboot_needed from earlier:
my ($reply, $timedout);
# Don't do autoreboot if X was somehow already started (not normally the case).