+if [ -e /preseed.cfg ]
+then
+ live-set-selections /preseed.cfg
+fi
+
+if [ -n "${LOCATIONS}" ]
+then
+ for item in ${LOCATIONS}
+ do
+ live-set-selections "/root$item"
+ done
+fi
+
+if [ -n "${PRESEEDS}" ]
+then
+ for preseed in ${PRESEEDS}
+ do
+ question="${preseed%%=*}"
+ value="${preseed#*=}"
+
+ live-preseed /root "${question}" "${value}"
+ done