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" ]
62 if db_get preseed/allow-network && [ "$RET" = true ]; then
66 DEBIAN_HAS_FRONTEND= DEBCONF_REDIR= \
67 DEBIAN_FRONTEND=noninteractive \
73 # Clear out debconf database backup files to save memory.
74 rm -f /root/var/cache/debconf/*.dat-old