diff options
| author | Andrey Asadchev <asadchev@gmail.com> | 2008-02-29 11:56:36 +0100 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 17:31:06 +0100 |
| commit | 9171ce28fbec2c18a19730044d1ac2157ccb396b (patch) | |
| tree | 4908cf671a18a8cdcaeda04700012ac116ae4120 /scripts | |
| parent | 0b9e3d97ef33baadf90c01d489e90414950c0487 (diff) | |
| download | live-boot-9171ce28fbec2c18a19730044d1ac2157ccb396b.tar.gz live-boot-9171ce28fbec2c18a19730044d1ac2157ccb396b.zip | |
Explicitly set Xorg video driver.
Xdriver is specifed with "xdriver=$(DRIVER)". This is because fglrx (and
possibly other drivers) are not detected correctly.
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/live | 5 | ||||
| -rwxr-xr-x | scripts/live-bottom/21xdriver | 51 |
2 files changed, 56 insertions, 0 deletions
diff --git a/scripts/live b/scripts/live index 332de10..8db6b80 100755 --- a/scripts/live +++ b/scripts/live @@ -396,6 +396,11 @@ Arguments () export XDEBCONF ;; + xdriver=*) + XDRIVER="${ARGUMENT#xdriver=}" + export XDRIVER + ;; + xvideomode=*) XVIDEOMODE="${ARGUMENT#xvideomode=}" export XVIDEOMODE diff --git a/scripts/live-bottom/21xdriver b/scripts/live-bottom/21xdriver new file mode 100755 index 0000000..c96f0ea --- /dev/null +++ b/scripts/live-bottom/21xdriver @@ -0,0 +1,51 @@ +#!/bin/sh + +#set -e + +# initramfs-tools header + +PREREQ="" + +prereqs() +{ + echo "${PREREQ}" +} + +case "${1}" in + prereqs) + prereqs + exit 0 + ;; +esac + +# live-initramfs header + +if [ -n "${NOXAUTOCONFIG}" ] +then + exit 0 +fi + +. /scripts/live-functions + +log_begin_msg "Configuring X kludges..." + +# live-initramfs script + +if [ -n "$XDRIVER" ] +then + mount -n -o bind /sys /root/sys + mount -n -o bind /proc /root/proc + mount -n -o bind /dev /root/dev + +chroot /root debconf-communicate -fnoninteractive live-initramfs > /dev/null << EOF +set xserver-xorg/autodetect_video_card false +set xserver-xorg/config/device/driver ${XDRIVER} +EOF + + chroot /root dexconf + + umount /root/sys + umount /root/proc + umount /root/dev +fi + |
