5 # initramfs-tools header
21 # live-initramfs header
23 if [ -n "${NOPRESEED}" ]
28 . /scripts/live-functions
30 log_begin_msg "Loading preseed file"
32 # live-initramfs script
34 if [ -e /preseed.cfg ]
36 chroot /root debconf-set-selections < /preseed.cfg
39 if [ -f "/root/${LOCATION}" ]
41 chroot /root debconf-set-selections < "/root/${LOCATION}"
44 if [ -n "${PRESEEDS}" ]
46 for preseed in ${PRESEEDS}
48 question="${preseed%%=*}"
51 live-preseed /root "${question}" "${value}"
55 reply="$(echo "GET preseed/early_command" | chroot /root debconf-communicate -fnoninteractive live-initramfs)"
57 if [ "${reply#0 }" != "${reply}" ]
63 # Clear out debconf database backup files to save memory.
64 rm -f /root/var/cache/debconf/*.dat-old