36154ea93aa35f135e3c5b7808f90115ca3e5d72
[live-initramfs-grml.git] / bin / live-preseed
1 #!/bin/sh
2
3 set -e
4
5 PATH=/usr/sbin:/usr/bin:/sbin:/bin
6
7 root="${1}"
8 question="${2}"
9 value="${3}"
10 seen="${4}"
11
12 [ "${seen}" ] || seen=true
13
14 if ! (echo "SET ${question} ${value}"; echo "FSET ${question} seen ${seen}") | chroot "${1}" debconf-communicate -fnoninteractive live-initramfs >/dev/null
15 then
16
17 chroot "${1}" debconf-communicate -fnoninteractive live-initramfs >/dev/null << EOF
18 REGISTER debian-installer/dummy ${question}
19 SET ${question} ${value}
20 FSET ${question} seen ${seen}
21 EOF
22
23 fi
24
25 exit 0