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) -- Simon Crute IS&T Bracknell Novell UK Ltd