4 DESCRIPTION="Configuring X..."
6 . /scripts/casper-functions
22 log_begin_msg "$DESCRIPTION"
24 if [ "$TERM_TYPE" = "serial" ]; then
25 # Don't bother trying to configure or start X on a serial console
26 rm -f /etc/rc?.d/S??[gxk]dm
30 mount -n -o bind /sys /root/sys
31 mount -n -o bind /proc /root/proc
33 if [ "${BUILD_SYSTEM}" == "Ubuntu" ]; then
34 chroot /root debconf-communicate -fnoninteractive casper > /dev/null <<EOF
35 set xserver-xorg/autodetect_keyboard true
36 fset xserver-xorg/autodetect_keyboard seen true
39 # d-i code not present, so:
40 echo "set xserver-xorg/config/inputdevice/keyboard/layout ${kbd}" | chroot /root debconf-communicate -fnoninteractive casper > /dev/null
43 DEBUG_XORG_PACKAGE=1 DEBUG_XORG_DEBCONF=1 casper-reconfigure /root xserver-xorg