Xen nVidia & nv

I have the nVidia driver on my desktop kernel set-up but have to change /etc/X11/xorg.conf from nVidia to nv to get a X to run in Xen.

Whilst this works, is there a way to tell Xen at boot time to use nv rather than nVidia so I don’t have to edit xorg.conf each time?

Thanks

John F.

/etc/rc.d/boot.local:


rm /etc/X11/xorg.conf

if  ${X_DRIVER} != "nv" ]] ; then
  echo 'NVIDIA-3D-Treiber'
  ln -s /etc/X11/xorg.conf.nvidia /etc/X11/xorg.conf
else
  echo 'NV-2D-Treiber'
  ln -s /etc/X11/xorg.conf.nv /etc/X11/xorg.conf
fi

grub-conf (Bootloader), set “X_Driver”:


title Xen -- openSUSE 11.1 - 2.6.27.7-9
    root (hd0,1)
    kernel /boot/xen.gz 
    module /boot/vmlinuz-2.6.27.7-9-xen ... X_DRIVER=nv
    module /boot/initrd-2.6.27.7-9-xen

Many thanks!

John F.