5 # initramfs-tools header
21 # live-initramfs header
23 if [ -n "${NOXAUTOCONFIG}" ]
28 if [ ! -x /root/usr/bin/X ]
33 [ -n "$XVIDEOMODE" ] || exit
35 . /scripts/live-functions
37 log_begin_msg "Configuring X video modes"
39 # live-initramfs script
43 if [ $(cat /root/etc/debian_version | sed 's|\..*$||') -ge 4 ]
46 if [ -x "$(which xrandr 2>/dev/null)" ]
48 echo "xrandr -s ${XVIDEOMODE} || /bin/true" >> /root/etc/X11/Xsession.d/21xvidemode
52 mount -o bind /sys /root/sys
53 mount -o bind /proc /root/proc
54 mount -o bind /dev /root/dev
56 chroot /root debconf-communicate -fnoninteractive live-initramfs > /dev/null << EOF
57 set xserver-xorg/config/monitor/mode-list ${XVIDEOMODE}
58 set xserver-xorg/config/display/modes ${XVIDEOMODE}