4 DESCRIPTION="Configuring X..."
6 . /scripts/live-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 mount -n -o bind /sys /root/sys
32 mount -n -o bind /proc /root/proc
33 mount -n -o bind /dev /root/dev
35 if [ -n "${XDEBCONF}" -a -x /root/usr/sbin/xdebconfigurator ]; then
37 chroot /root /usr/sbin/xdebconfigurator
40 if [ "${BUILD_SYSTEM}" == "Ubuntu" ]; then
41 chroot /root debconf-communicate -fnoninteractive live-initramfs > /dev/null <<EOF
42 set xserver-xorg/autodetect_keyboard true
43 fset xserver-xorg/autodetect_keyboard seen true
46 # d-i code not present, so:
47 if [ -n "${KOPTIONS}" ]; then
48 setoptions="set xserver-xorg/config/inputdevice/keyboard/options ${KOPTIONS}"
50 if [ -n "${KVARIANT}" ]; then
51 setvariant="set xserver-xorg/config/inputdevice/keyboard/variant ${KVARIANT}"
53 if [ -n "${KMODEL}" ]; then
54 setmodel="set xserver-xorg/config/inputdevice/keyboard/model ${KMODEL}"
57 chroot /root debconf-communicate -fnoninteractive live-initramfs > /dev/null <<EOF
58 set xserver-xorg/config/inputdevice/keyboard/layout ${kbd}
65 DEBUG_XORG_PACKAGE=1 DEBUG_XORG_DEBCONF=1 live-reconfigure /root xserver-xorg