4 DESCRIPTION="Configuring X..."
6 . /scripts/casper-functions
21 log_begin_msg "$DESCRIPTION"
23 if [ "$TERM_TYPE" = "serial" ]; then
24 # Don't bother trying to configure or start X on a serial console
25 rm -f /etc/rc?.d/S??[gxk]dm
31 for x in $(cat /proc/cmdline); do
33 debian-installer/locale=*)
34 locale=${x#debian-installer/locale=}
42 mount -n -o bind /sys /root/sys
43 mount -n -o bind /proc /root/proc
44 mount -n -o bind /dev /root/dev
46 if [ -n "${XDEBCONF}" -a -x /root/usr/sbin/xdebconfigurator ]; then
48 chroot /root /usr/sbin/xdebconfigurator
51 chroot /root debconf-communicate -fnoninteractive casper > /dev/null <<EOF
52 set xserver-xorg/autodetect_keyboard true
53 fset xserver-xorg/autodetect_keyboard seen true
56 DEBUG_XORG_PACKAGE=1 DEBUG_XORG_DEBCONF=1 LANG=$(grep "^${locale}" /root/usr/share/i18n/SUPPORTED | grep UTF-8 | sed -e 's, .*,,' -e q) casper-reconfigure /root xserver-xorg