X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=bin%2Flive-preseed;h=36154ea93aa35f135e3c5b7808f90115ca3e5d72;hb=73be0f36a5ee85317b2b9e94a0781cab9320a5ee;hp=c10315ebde24b0f025953b76678bb9d5feeb6eda;hpb=9fc9e2a1a11b0edada38cb501fefe4f58aa414ac;p=live-boot-grml.git diff --git a/bin/live-preseed b/bin/live-preseed index c10315e..36154ea 100755 --- a/bin/live-preseed +++ b/bin/live-preseed @@ -1,19 +1,25 @@ -#! /bin/sh +#!/bin/sh + set -e + PATH=/usr/sbin:/usr/bin:/sbin:/bin -root="$1" -question="$2" -value="$3" -seen="$4" -[ "$seen" ] || seen=true - -if ! (echo "SET $question $value"; echo "FSET $question seen $seen") | chroot "$1" debconf-communicate -fnoninteractive live-initramfs >/dev/null; then - chroot "$1" debconf-communicate -fnoninteractive live-initramfs >/dev/null </dev/null +then + +chroot "${1}" debconf-communicate -fnoninteractive live-initramfs >/dev/null << EOF +REGISTER debian-installer/dummy ${question} +SET ${question} ${value} +FSET ${question} seen ${seen} EOF + fi exit 0