5 # initramfs-tools header
21 # live-initramfs header
23 if [ -n "${NOPRESEED}" ]
28 . /scripts/live-functions
31 log_begin_msg "Loading preseed file"
33 # live-initramfs script
35 if [ -e /preseed.cfg ]
37 live-set-selections /preseed.cfg
40 if [ -n "${LOCATIONS}" ]
42 for item in ${LOCATIONS}
44 live-set-selections "/root$item"
48 if [ -n "${PRESEEDS}" ]
50 for preseed in ${PRESEEDS}
52 question="${preseed%%=*}"
55 live-preseed /root "${question}" "${value}"
59 if db_get preseed/early_command && [ "$RET" ]
61 if db_get preseed/allow-network && [ "$RET" = true ]; then
65 DEBIAN_HAS_FRONTEND= DEBCONF_REDIR= \
66 DEBIAN_FRONTEND=noninteractive \
72 # Clear out debconf database backup files to save memory.
73 rm -f /root/var/cache/debconf/*.dat-old