[ATrpms-devel] nouveau vs nvidia - fresh install, nouveau wins

Axel Thimm Axel.Thimm at ATrpms.net
Wed May 4 18:28:11 CEST 2011


On Wed, 2011-05-04 at 11:33 -0400, George Galt wrote:
> A long time ago, Axel posted instructions on rebuilding initrd, which
> should (I believe) fix the issue. I can't find the commands now, but
> perhaps Axel can repost the commands.  I think this is what finally
> fixed the nouveau v nvidia issue for me.

I'm still not convinced, as every user out there should be falling in
the same trap and we would have tons of reports, not only on ATrpms, or
Fedora, but generally for nvidia closed source driver users on
distributions with nouveau and kernel mode switching (which should
probably be every current distribution out there).

> Axel, any thoughts on this?

The safest way is to pick the latest running kernel and query rpm itself
how it was done, as the mkinitrd or equivalents are masked behind
wrappers. For example the latest F14 kernel says:

        $ rpm -q --scripts kernel-2.6.35.12-90.fc14.x86_64
        postinstall scriptlet (using /bin/sh):
        
        if [ `uname -i` == "x86_64" -o `uname -i` == "i386" ] &&
           [ -f /etc/sysconfig/kernel ]; then
          /bin/sed -r -i -e 's/^DEFAULTKERNEL=kernel-smp$/DEFAULTKERNEL=kernel/' /etc/sysconfig/kernel || exit $?
        fi
        
        /sbin/new-kernel-pkg --package kernel --install 2.6.35.12-90.fc14.x86_64 || exit $?
        preuninstall scriptlet (using /bin/sh):
        /sbin/new-kernel-pkg --rminitrd --rmmoddep --remove 2.6.35.12-90.fc14.x86_64 || exit $?
        posttrans scriptlet (using /bin/sh):
        /sbin/new-kernel-pkg --package kernel --mkinitrd --dracut --depmod --update 2.6.35.12-90.fc14.x86_64 || exit $?
        /sbin/new-kernel-pkg --package kernel --rpmposttrans 2.6.35.12-90.fc14.x86_64 || exit $?
        
The interesting bits are the second to the last line in this case. But
beware, the scripts' layout can change (they have in the past and will
do so in the future), if you - dear reader in the year 2525 running
Fedora 10^3 - are reading this use rpm -q --scripts to check on how the
initramfs is set up in your time frame. ;)
-- 
http://thimm.gr/ - http://ATrpms.net/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.atrpms.net/pipermail/atrpms-devel/attachments/20110504/75ff1c17/attachment-0001.sig>


More information about the atrpms-devel mailing list