3
# lh_chroot_interactive(1) - make build interactive
4
# Copyright (C) 2006-2010 Daniel Baumann <daniel@debian.org>
6
# live-helper comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
7
# This is free software, and you are welcome to redistribute it
8
# under certain conditions; see COPYING for details.
12
# Including common functions
13
. "${LH_BASE:-/usr/share/live-helper}"/live-helper.sh
15
# Setting static variables
16
DESCRIPTION="$(Echo 'make build interactive')"
18
USAGE="${PROGRAM} [--force]"
22
# Reading configuration files
23
Read_conffiles config/all config/common config/bootstrap config/chroot config/binary config/source
26
if [ "${LH_INTERACTIVE}" = "false" ]
31
Echo_message "Begin interactive build..."
33
# Requiring stage file
34
Require_stagefile .stage/config .stage/bootstrap
37
Check_stagefile .stage/chroot_interactive
45
case "${LH_INTERACTIVE}" in
47
Echo_message "Pausing build: starting interactive shell..."
48
Chroot chroot "/bin/bash --login"
51
Echo_message "Pausing build: starting interactive X11..."
52
Chroot chroot "startx"
55
Echo_message "Pausing build: starting interactive Xnest..."
56
#Chroot chroot "" # FIXME
61
Create_stagefile .stage/chroot_symlinks