-if [ -n "${PRESEEDS}" ]; then
- for preseed in ${PRESEEDS}; do
- question="${preseed%%=*}"
- value="${preseed#*=}"
- live-preseed /root "${question}" "${value}"
- done
+if [ -n "${LOCATIONS}" ]
+then
+ for item in ${LOCATIONS}
+ do
+ chroot /root debconf-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