X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Fcasper-bottom%2F24preseed;h=b4aac4c0f96180b14f16b9ea2faf8d2e684f90b7;hb=refs%2Ftags%2Fdebian%2F1.79%2Bdebian-1;hp=cd5246717b7e65599965c624f50d6ee3164aa50a;hpb=4042b2eda2107dda511a29ae376d9724e0fd7a33;p=live-boot-grml.git diff --git a/scripts/casper-bottom/24preseed b/scripts/casper-bottom/24preseed index cd52467..b4aac4c 100755 --- a/scripts/casper-bottom/24preseed +++ b/scripts/casper-bottom/24preseed @@ -20,29 +20,16 @@ esac log_begin_msg "$DESCRIPTION" -location= -for x in $(cat /proc/cmdline); do - case $x in - preseed/file=*) - location="${x#preseed/file=}" - ;; - file=*) - location="${x#file=}" - ;; - */*=*) - question="${x%%=*}" - value="${x#*=}" - casper-preseed /root "$question" "$value" - ;; - locale=*) - value="${x#*=}" - casper-preseed /root debian-installer/locale "$value" - ;; - esac -done - -if [ "$location" ]; then - chroot /root debconf-set-selections < "/root$location" +if [ -f "/root/${LOCATION}" ]; then + chroot /root debconf-set-selections < "/root/${LOCATION}" +fi + +if [ -n "${PRESEEDS}" ]; then + for preseed in ${PRESEEDS}; do + question="${preseed%%=*}" + value="${preseed#*=}" + casper-preseed /root "${question}" "${value}" + done fi log_end_msg