catalyst: disable drm dracut module, otherwise the radeon driver could be loaded.

Found and tested by @RealJohnGalt.
This commit is contained in:
Juan RP 2014-09-14 10:15:47 +02:00
parent a070a0694a
commit ed56fefb07

View file

@ -3,7 +3,7 @@ _desc="AMD catalyst driver for Linux"
pkgname=catalyst
version=14.201
revision=1
revision=2
maintainer="Juan RP <xtraeme@gmail.com>"
license="Propietary AMD license"
homepage="http://www.amd.com"
@ -108,6 +108,7 @@ catalyst-dkms_package() {
pkg_install() {
local _fglrx=fglrx-${version}_${revision}
vmkdir usr/lib/dracut/dracut.conf.d
vmkdir usr/lib/modprobe.d
vmkdir usr/lib/modules-load.d
vmkdir usr/src/${_fglrx}
@ -120,7 +121,8 @@ catalyst-dkms_package() {
vinstall ${FILESDIR}/dkms.conf 644 usr/src/${_fglrx}
sed -i -e "s/@VERSION@/${version}-${revision}/" ${PKGDESTDIR}/usr/src/${_fglrx}/dkms.conf
echo "omit_dracutmodules+=\" drm \"" > ${PKGDESTDIR}/usr/lib/dracut/dracut.conf.d/catalyst.conf
echo "blacklist radeon" > ${PKGDESTDIR}/usr/lib/modprobe.d/catalyst.conf
echo "fglrx" > ${PKGDESTDIR}/usr/lib/modules-load.d/catalyst.conf
}