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 /etc/rc?.d/S??[gxk]dm
43 mount -n -o bind /sys /root/sys
44 mount -n -o bind /proc /root/proc
45 mount -n -o bind /dev /root/dev
47 if [ -n "${XDEBCONF}" -a -x /root/usr/sbin/xdebconfigurator ]
50 chroot /root /usr/sbin/xdebconfigurator
53 if [ "${BUILD_SYSTEM}" = "Ubuntu" ]
56 chroot /root debconf-communicate -fnoninteractive live-initramfs > /dev/null << EOF
57 set xserver-xorg/autodetect_keyboard true
58 fset xserver-xorg/autodetect_keyboard seen true
62 # d-i code not present, so:
63 if [ -n "${KOPTIONS}" ]
65 setoptions="set xserver-xorg/config/inputdevice/keyboard/options ${KOPTIONS}"
68 if [ -n "${KVARIANT}" ]
70 setvariant="set xserver-xorg/config/inputdevice/keyboard/variant ${KVARIANT}"
75 setmodel="set xserver-xorg/config/inputdevice/keyboard/model ${KMODEL}"
78 chroot /root debconf-communicate -fnoninteractive live-initramfs > /dev/null << EOF
79 set xserver-xorg/config/inputdevice/keyboard/layout ${kbd}
87 DEBUG_XORG_PACKAGE=1 DEBUG_XORG_DEBCONF=1 live-reconfigure /root xserver-xorg