5 # initramfs-tools header
23 if [ -n "${NOXAUTOCONFIG}" ]
28 . /scripts/live-functions
32 if [ -n "${TEXTONLY}" ]
37 if [ ! -x /root/usr/bin/X ]
42 log_begin_msg "Configuring X"
44 if ! grep -q xforcevesa /proc/cmdline 2>&1 >/dev/null
46 if [ "${TERM_TYPE}" = "serial" ]
48 # Don't bother trying to configure or start X on a serial
50 rm -f /root/etc/rc?.d/S??[gkx]dm
56 mount -o bind /sys /root/sys
57 mount -o bind /proc /root/proc
58 mount -o bind /dev /root/dev
60 if [ -n "${XDEBCONF}" -a -x /root/usr/sbin/xdebconfigurator ]
63 chroot /root /usr/sbin/xdebconfigurator
66 if [ -n "${KOPTIONS}" ]
68 setoptions="set xserver-xorg/config/inputdevice/keyboard/options ${KOPTIONS}"
71 if [ -n "${KVARIANT}" ]
73 setvariant="set xserver-xorg/config/inputdevice/keyboard/variant ${KVARIANT}"
78 setmodel="set xserver-xorg/config/inputdevice/keyboard/model ${KMODEL}"
81 if [ -n "${KLAYOUT}" ]
83 setlayout="set xserver-xorg/config/inputdevice/keyboard/layout ${KLAYOUT}"
86 chroot /root debconf-communicate -fnoninteractive live-boot > /dev/null << EOF
93 live-reconfigure /root xserver-xorg 2>&1 \
94 | grep -v "overwriting possibly-customised configuration" \
95 | grep -v "file; backup in /etc/X11/xorg.conf"
102 cat > /root/etc/X11/xorg.conf << EOF
104 Identifier "Configured Video Device"
109 Identifier "Configured Monitor"
113 Identifier "Default Screen"
114 Monitor "Configured Monitor"
115 Device "Configured Video Device"