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 [ "${BUILD_SYSTEM}" = "Ubuntu" ]
61 chroot /root debconf-communicate -fnoninteractive live-initramfs > /dev/null << EOF
62 set xserver-xorg/autodetect_keyboard true
63 fset xserver-xorg/autodetect_keyboard seen true
67 # d-i code not present, so:
68 if [ -n "${KOPTIONS}" ]
70 setoptions="set xserver-xorg/config/inputdevice/keyboard/options ${KOPTIONS}"
73 if [ -n "${KVARIANT}" ]
75 setvariant="set xserver-xorg/config/inputdevice/keyboard/variant ${KVARIANT}"
80 setmodel="set xserver-xorg/config/inputdevice/keyboard/model ${KMODEL}"
83 chroot /root debconf-communicate -fnoninteractive live-initramfs > /dev/null << EOF
84 set xserver-xorg/config/inputdevice/keyboard/layout ${kbd}
92 DEBUG_XORG_PACKAGE=1 DEBUG_XORG_DEBCONF=1 live-reconfigure /root xserver-xorg