diff options
| author | Daniel Baumann <daniel@debian.org> | 2007-09-23 14:46:27 +0200 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2007-09-23 14:46:27 +0200 |
| commit | 8421bbd25885a670de6b616da12711b5dcf68e1b (patch) | |
| tree | e033292beefaedb37f1668ce671db5f92e698081 /scripts/casper-bottom/24preseed | |
| parent | 0a8e85ff66e30694a0583614f0ae90c36e8d44f6 (diff) | |
| download | live-boot-8421bbd25885a670de6b616da12711b5dcf68e1b.tar.gz live-boot-8421bbd25885a670de6b616da12711b5dcf68e1b.zip | |
Adding casper 1.77+debian-5.
Diffstat (limited to 'scripts/casper-bottom/24preseed')
| -rwxr-xr-x | scripts/casper-bottom/24preseed | 33 |
1 files changed, 10 insertions, 23 deletions
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 |
