5 # initramfs-tools header
23 if [ -n "${NOPRESEED}" ]
28 . /scripts/live-functions
30 log_begin_msg "Loading preseed file"
34 if [ -e /preseed.cfg ]
36 chroot /root debconf-set-selections < /preseed.cfg
39 if [ -n "${LOCATIONS}" ]
41 for item in ${LOCATIONS}
43 chroot /root debconf-set-selections < "/root${item}"
47 if [ -n "${PRESEEDS}" ]
49 for preseed in ${PRESEEDS}
51 question="${preseed%%=*}"
54 live-preseed /root "${question}" "${value}"
58 reply="$(echo "GET preseed/early_command" | chroot /root debconf-communicate -fnoninteractive live-boot)"
60 if [ "${reply#0 }" != "${reply}" ]
66 # Clear out debconf database backup files to save memory.
67 rm -f /root/var/cache/debconf/*.dat-old