3
# The following debconf stuff needs to be in an own child. For some reason,
4
# debconf is messing with the FD and the environment, so that cdebconf in the
5
# installer is failing (will not react to any input).
7
# To avoid that, we're calling it in an own script. Calling it in a subshell
12
. /usr/share/debconf/confmodule
16
db_input critical live-installer-launcher/mode || true
19
db_get live-installer-launcher/mode
22
FRONTEND=$(echo $MODE | awk -F- '{ print $1 }')
23
PRIORITY=$(echo $MODE | awk -F- '{ print $2 }')
25
db_fset live-installer-launcher/mode seen false
28
# Write values to temporary file that can be sourced from the parent script.
29
echo "FRONTEND=$FRONTEND" > /tmp/live-installer
30
echo "PRIORITY=$PRIORITY" >> /tmp/live-installer