summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2021-11-02 14:03:40 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2021-11-02 14:14:44 +0000
commit312522abec9fcda15e529c15e762fc13b71c6136 (patch)
tree63824ba011bab812d7d78f3784cf865e38501caf
parentRefactor debootstrap create script (FIXME WIP). (diff)
downloadcompute-tools-312522abec9fcda15e529c15e762fc13b71c6136.tar.xz
compute-tools-312522abec9fcda15e529c15e762fc13b71c6136.zip
Adding 'exit' in debconf build script, thanks to Katharina.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
-rwxr-xr-xshare/build-scripts/debconf.d/0001-preseed-file6
-rwxr-xr-xshare/create-scripts/debconf.d/0001-preseed-file6
2 files changed, 10 insertions, 2 deletions
diff --git a/share/build-scripts/debconf.d/0001-preseed-file b/share/build-scripts/debconf.d/0001-preseed-file
index d70e4e1..d7e52f0 100755
--- a/share/build-scripts/debconf.d/0001-preseed-file
+++ b/share/build-scripts/debconf.d/0001-preseed-file
@@ -65,7 +65,7 @@ then
if [ -n "${PRESEED_FILES}" ]
then
- db_subst container/preseed-files CHOICES "none, custom, , ${PRESEED_FILES}"
+ db_subst container/preseed-files CHOICES "exit, none, custom, , ${PRESEED_FILES}"
db_settitle container/title
db_input high container/preseed-files || true
@@ -75,6 +75,10 @@ then
PRESEED_FILE="${RET}" # select
case "${PRESEED_FILE}" in
+ exit)
+ exit 1
+ ;;
+
none|custom)
;;
diff --git a/share/create-scripts/debconf.d/0001-preseed-file b/share/create-scripts/debconf.d/0001-preseed-file
index d70e4e1..d7e52f0 100755
--- a/share/create-scripts/debconf.d/0001-preseed-file
+++ b/share/create-scripts/debconf.d/0001-preseed-file
@@ -65,7 +65,7 @@ then
if [ -n "${PRESEED_FILES}" ]
then
- db_subst container/preseed-files CHOICES "none, custom, , ${PRESEED_FILES}"
+ db_subst container/preseed-files CHOICES "exit, none, custom, , ${PRESEED_FILES}"
db_settitle container/title
db_input high container/preseed-files || true
@@ -75,6 +75,10 @@ then
PRESEED_FILE="${RET}" # select
case "${PRESEED_FILE}" in
+ exit)
+ exit 1
+ ;;
+
none|custom)
;;