X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F24preseed;h=85c6494406ffd820838cce08b97e9e32a37aecfe;hb=e66f79476042794195978ee641aa7ea0d9ca6e0a;hp=2536bd0a3410f3523de7c0ae6c941825ab954a16;hpb=5f0f3b0c36d433a462176f970d371c77c3020749;p=live-boot-grml.git diff --git a/scripts/live-bottom/24preseed b/scripts/live-bottom/24preseed index 2536bd0..85c6494 100755 --- a/scripts/live-bottom/24preseed +++ b/scripts/live-bottom/24preseed @@ -18,7 +18,7 @@ case "${1}" in ;; esac -# live-initramfs header +# live-boot header if [ -n "${NOPRESEED}" ] then @@ -29,16 +29,19 @@ fi log_begin_msg "Loading preseed file" -# live-initramfs script +# live-boot script if [ -e /preseed.cfg ] then chroot /root debconf-set-selections < /preseed.cfg fi -if [ -f "/root/${LOCATION}" ] +if [ -n "${LOCATIONS}" ] then - chroot /root debconf-set-selections < "/root/${LOCATION}" + for item in ${LOCATIONS} + do + chroot /root debconf-set-selections < "/root${item}" + done fi if [ -n "${PRESEEDS}" ] @@ -52,7 +55,7 @@ then done fi -reply="$(echo "GET preseed/early_command" | chroot /root debconf-communicate -fnoninteractive live-initramfs)" +reply="$(echo "GET preseed/early_command" | chroot /root debconf-communicate -fnoninteractive live-boot)" if [ "${reply#0 }" != "${reply}" ] then