Mageia Bugzilla – Attachment 8490 Details for
Bug 19520
Wrong display driver is loaded on Live system after dkms build/install
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
Proposed fix (with added comment)
0001-Prevent-dkms-autoload-of-display-driver-on-Live-syst.patch (text/plain), 828 bytes, created by
Martin Whitaker
on 2016-10-04 09:51:46 CEST
(
hide
)
Description:
Proposed fix (with added comment)
Filename:
MIME Type:
Creator:
Martin Whitaker
Created:
2016-10-04 09:51:46 CEST
Size:
828 bytes
patch
obsolete
>From a2b6ebbe3d5e6bf6798f158d82fbf99ca0eb07e3 Mon Sep 17 00:00:00 2001 >From: Martin Whitaker <mageia@martin-whitaker.me.uk> >Date: Mon, 3 Oct 2016 23:10:58 +0100 >Subject: [PATCH] Prevent dkms autoload of display driver on Live system before > xorg.conf exists (mga19520). > > >diff --git a/tools/display_driver_helper b/tools/display_driver_helper >index 8f842d5..5c82731 100644 >--- a/tools/display_driver_helper >+++ b/tools/display_driver_helper >@@ -432,7 +432,11 @@ case "$1" in > ;; > --load-dkms-autoload) > DKMS_AUTOLOAD_MODULE="$2" >- load_driver "$3" >+ # When booting a Live system, don't attempt to load a driver unless >+ # xorg.conf exists, otherwise we will load the wrong driver (mga19520). >+ if [ -e /etc/X11/xorg.conf -o ! -e /run/mgalive ]; then >+ load_driver "$3" >+ fi > ;; > --is-disabled) > check_driver "$2" >-- >2.7.4
From a2b6ebbe3d5e6bf6798f158d82fbf99ca0eb07e3 Mon Sep 17 00:00:00 2001 From: Martin Whitaker <mageia@martin-whitaker.me.uk> Date: Mon, 3 Oct 2016 23:10:58 +0100 Subject: [PATCH] Prevent dkms autoload of display driver on Live system before xorg.conf exists (mga19520). diff --git a/tools/display_driver_helper b/tools/display_driver_helper index 8f842d5..5c82731 100644 --- a/tools/display_driver_helper +++ b/tools/display_driver_helper @@ -432,7 +432,11 @@ case "$1" in ;; --load-dkms-autoload) DKMS_AUTOLOAD_MODULE="$2" - load_driver "$3" + # When booting a Live system, don't attempt to load a driver unless + # xorg.conf exists, otherwise we will load the wrong driver (mga19520). + if [ -e /etc/X11/xorg.conf -o ! -e /run/mgalive ]; then + load_driver "$3" + fi ;; --is-disabled) check_driver "$2" -- 2.7.4
View Attachment As Raw
Actions:
View
Attachments on
bug 19520
:
8488
| 8490