projects
/
live-boot-grml.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merging casper 1.219.
[live-boot-grml.git]
/
bin
/
live-preseed
diff --git
a/bin/live-preseed
b/bin/live-preseed
index
36154ea
..
add29bd
100755
(executable)
--- a/
bin/live-preseed
+++ b/
bin/live-preseed
@@
-4,22
+4,29
@@
set -e
PATH=/usr/sbin:/usr/bin:/sbin:/bin
PATH=/usr/sbin:/usr/bin:/sbin:/bin
+# Only do this once
+if [ -z "${DEBCONF_REDIR}" ]
+then
+ exec <&4
+ export DEBIAN_HAS_FRONTEND=1
+ export DEBCONF_REDIR=1
+fi
+
root="${1}"
root="${1}"
+. "$root/usr/share/debconf/confmodule"
+
question="${2}"
value="${3}"
seen="${4}"
[ "${seen}" ] || seen=true
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
+if !
db_set "${question}" "${value}"
then
then
-
-chroot "${1}" debconf-communicate -fnoninteractive live-initramfs >/dev/null << EOF
-REGISTER debian-installer/dummy ${question}
-SET ${question} ${value}
-FSET ${question} seen ${seen}
-EOF
-
+ db_register debian-installer/dummy "${question}"
+ db_set "${question}" "${value}"
fi
fi
+db_fset "${question}" seen "${seen}"
+
exit 0
exit 0