[ATrpms-devel] nouveau vs nvidia - fresh install, nouveau wins
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-184.108.40.206-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 $?
/sbin/new-kernel-pkg --package kernel --install 220.127.116.11-90.fc14.x86_64 || exit $?
preuninstall scriptlet (using /bin/sh):
/sbin/new-kernel-pkg --rminitrd --rmmoddep --remove 18.104.22.168-90.fc14.x86_64 || exit $?
posttrans scriptlet (using /bin/sh):
/sbin/new-kernel-pkg --package kernel --mkinitrd --dracut --depmod --update 22.214.171.124-90.fc14.x86_64 || exit $?
/sbin/new-kernel-pkg --package kernel --rpmposttrans 126.96.36.199-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
Size: 198 bytes
Desc: This is a digitally signed message part
More information about the atrpms-devel