Good day Thanks for your answer. I'm almost done with what I wanted, still put in my autoinst.xml <script> <filename>nvidia.sh</filename> <interpreter>shell</interpreter> <source><![CDATA[ mkdir /mnt/install mount bali:/files/install/devel_ws /mnt/install sh /mnt/install/extras/NVIDIA-Linux-x86_64-1.0-8762-pkg2.run -s sleep 10 /usr/sbin/SaX2 -a /sbin/init 5 ]]> </source> </script> The sleep cmd there is just a try to solve my last problem. The driver now installs flawless, but SaX doesn't seem to care. Although if I run SaX manually again after the system is fully up it sees the installed driver and uses it. So I thought I might give the system a break before starting SaX. It's currently running so I'll see if it works in a couple minutes. Regards André --------------------------------------------------------------------- André Hirschi Phone +41 44 366 88 43 Systems Administrator Fax +41 44 366 88 99 Visonys AG Mobile +41 78 626 22 09 Ottikerstrasse 59 andre.hirschi@visonys.com CH-8006 Zürich Switzerland www.visonys.com --------------------------------------------------------------------- safe and swiss. Simon Crute wrote:
On Wednesday 26 July 2006 16:44, André Hirschi wrote:
Good evening
I'm still on my way to a fully automated SuSE 10.1 Installation. I'm currently stuck with the NVIDIA Driver. Has anybody managed to do that? I tried to do it with several ways, like including a small script into my autoinst.xml, but everything fails. The last thing I tried was going with "init-scripts", but that gave me the error:
I'm working on this for a SLED, but still ironing out a couple of bugs with trying to do it all by the book (using zmd/rug) and not just grabbing a known good set of RPMs and pulling them of a local server.
So far, (in *very* ugly perl) I have the following bit of post install.
#list of machines that use the fglrx driver @fglrx_machines=( "0C4708", "2669VLM", "0FH884", "Latitude D610" );
#lets see if we do some xgl magic. @a = `hwinfo --bios |grep Product:`; $doXGL=0;
machine: foreach $line (@a) { $line =~ s/^\s*Product: "(.*)"$/$1/; chomp $line; foreach (@fglrx_machines) { if ($line eq $_) { #found a matching line $doXGL=1; last machine; } } }
#figure out what RPMs we need. # $kversion = `uname -r | cut -d "-" -f 3`; chomp $kversion; if ( `hwinfo --gfx | grep -c nVidia` != 0 ) { #we have an nVidia card $rpms = "nvidia-gfx-kmp-$kversion x11-video-nvidia"; } elsif ( `hwinfo --gfx | grep -c ATI` != 0 ) { #we have an ATI card $rpms = "ati-fglrx-kmp-$kversion x11-video-fglrx"; }
#wait for 5 mins for rug to settle down. sleep 300;
if ($doXGL) { #magic Xgl install here print "Installing Xgl drivres\n"; # print `rug in x11-video-fglrx ati-fglrx-kmp-default`; print `expect - << EOF set timeout 120 spawn rug in $rpms expect " Software End User License Agreement" send "q" expect "Do you accept the license?" send "y\r" expect " Software End User License Agreement" send "q" expect "Do you accept the license?" send "y\r" expect "Transaction Finished" EOF `;
print `/opt/gnome/bin/gnome-xgl-switch --enable-xgl`; }
As you can see, still some issues around rug trying to do it's install before ZMD has finished downloading the repo-data. (I think)