5 # initramfs-tools header
21 # live-initramfs header
23 if [ -n "${NOXAUTOCONFIG}" ]
28 . /scripts/live-functions
30 log_begin_msg "Configuring X"
32 # live-initramfs script
34 if [ "${TERM_TYPE}" = "serial" ]
36 # Don't bother trying to configure or start X on a serial console
37 rm -f /root/etc/rc?.d/S??[gkx]dm
41 if [ -n "${TEXTONLY}" ]
48 mount -n -o bind /sys /root/sys
49 mount -n -o bind /proc /root/proc
50 mount -n -o bind /dev /root/dev
52 if [ -n "${XDEBCONF}" -a -x /root/usr/sbin/xdebconfigurator ]
55 chroot /root /usr/sbin/xdebconfigurator
58 if [ -n "${KOPTIONS}" ]
60 setoptions="set xserver-xorg/config/inputdevice/keyboard/options ${KOPTIONS}"
63 if [ -n "${KVARIANT}" ]
65 setvariant="set xserver-xorg/config/inputdevice/keyboard/variant ${KVARIANT}"
70 setmodel="set xserver-xorg/config/inputdevice/keyboard/model ${KMODEL}"
73 chroot /root debconf-communicate -fnoninteractive live-initramfs > /dev/null << EOF
74 set xserver-xorg/config/inputdevice/keyboard/layout ${kbd}
80 DEBUG_XORG_PACKAGE=1 DEBUG_XORG_DEBCONF=1 live-reconfigure /root xserver-xorg 2>/dev/null