X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=bin%2Flive-preseed;h=d98c4f36fc49e0885470ce7ec1f7a706f53b7477;hb=4e024dff26b33878ca7ef61fc108fc2de7d5c4cb;hp=c10315ebde24b0f025953b76678bb9d5feeb6eda;hpb=292e65d84b99afa4c9240c23e1433b828af80ba3;p=live-boot-grml.git diff --git a/bin/live-preseed b/bin/live-preseed index c10315e..d98c4f3 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}" /usr/bin/debconf-communicate -fnoninteractive live-initramfs >/dev/null << EOF +REGISTER debian-installer/dummy ${question} +SET ${question} ${value} +FSET ${question} seen ${seen} EOF + fi exit 0