summaryrefslogtreecommitdiffstats
path: root/share/scripts/debconf
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2017-12-07 18:00:17 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2017-12-07 18:01:09 +0000
commit4d7ca1ef1fed8279d234c77c900271ce66d71a5b (patch)
treebfc6c8efdb24d3810c55122f66463101bcbad851 /share/scripts/debconf
parentAutomatically take matching preseeding files from /etc/container-tools/debconf. (diff)
downloadcompute-tools-4d7ca1ef1fed8279d234c77c900271ce66d71a5b.tar.xz
compute-tools-4d7ca1ef1fed8279d234c77c900271ce66d71a5b.zip
Automatically take default preseeding file from /etc/container-tools/debconf if available.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to '')
-rwxr-xr-xshare/scripts/debconf.d/0001-preseed-file5
1 files changed, 5 insertions, 0 deletions
diff --git a/share/scripts/debconf.d/0001-preseed-file b/share/scripts/debconf.d/0001-preseed-file
index efd59ed..5b646c4 100755
--- a/share/scripts/debconf.d/0001-preseed-file
+++ b/share/scripts/debconf.d/0001-preseed-file
@@ -38,6 +38,11 @@ then
# available on the system matching the container name
db_set cnt-debconf/preseed-file "${CONFIG}/${NAME}.cfg"
db_fset cnt-debconf/preseed-file seen true
+elif [ -e "${CONFIG}/default.cfg" ]
+then
+ # user did not specify a pressed file, but there is a default one
+ db_set cnt-debconf/preseed-file "${CONFIG}/default.cfg"
+ db_fset cnt-debconf/preseed-file seen true
elif ls "${CONFIG}"/*.cfg > /dev/null 2>&1
then
# user has not specified preseed files through commandline option,