#!/bin/sh #set -e # initramfs-tools header PREREQ="" prereqs() { echo "${PREREQ}" } case "${1}" in prereqs) prereqs exit 0 ;; esac # live-initramfs header . /scripts/live-functions log_begin_msg "Configuring X..." # live-initramfs script if [ "$TERM_TYPE" = "serial" ]; then # Don't bother trying to configure or start X on a serial console rm -f /etc/rc?.d/S??[gxk]dm exit 0 fi locale=en_US.UTF-8 mount -n -o bind /sys /root/sys mount -n -o bind /proc /root/proc mount -n -o bind /dev /root/dev if [ -n "${XDEBCONF}" -a -x /root/usr/sbin/xdebconfigurator ]; then # xdebconfigurator chroot /root /usr/sbin/xdebconfigurator fi if [ "${BUILD_SYSTEM}" == "Ubuntu" ]; then chroot /root debconf-communicate -fnoninteractive live-initramfs > /dev/null < /dev/null <