summaryrefslogtreecommitdiffstats
path: root/share/build-scripts/debconf.d
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2022-05-08 14:03:48 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2022-05-08 14:03:48 +0000
commitcb6e1754c0726c180acbe0476a1f60f8aaeac856 (patch)
tree3c3366c7c094c1c91867f355c1dd7af5e102f8af /share/build-scripts/debconf.d
parentCorrecting off-by-one error when warning about too long veth interface names ... (diff)
downloadcompute-tools-cb6e1754c0726c180acbe0476a1f60f8aaeac856.tar.xz
compute-tools-cb6e1754c0726c180acbe0476a1f60f8aaeac856.zip
Adding comments about debconf hierarchy in debconf build script.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to 'share/build-scripts/debconf.d')
-rwxr-xr-xshare/build-scripts/debconf.d/0001-preseed-file9
1 files changed, 9 insertions, 0 deletions
diff --git a/share/build-scripts/debconf.d/0001-preseed-file b/share/build-scripts/debconf.d/0001-preseed-file
index 8409486..d2da46d 100755
--- a/share/build-scripts/debconf.d/0001-preseed-file
+++ b/share/build-scripts/debconf.d/0001-preseed-file
@@ -31,6 +31,15 @@ export DEBCONF_NOWARNINGS
. /usr/share/debconf/confmodule
+# debconf template hierarchy (first match wins):
+#
+# 1. user specified a preseed file through commandline options
+# 2. /etc/compute-tools/debconf/${NAME}.cfg exists
+# 3. /etc/compute-tools/debconf/*/${NAME}.cfg exists (only one file!)
+# 4. /etc/compute-tools/debconf/default.cfg exists
+# 5. user chooses from list of available (if any) *.cfg files
+# (recursively) found in /etc/compute-tools/debconf.
+
if [ -n "${PRESEED_FILE}" ]
then
# user specified one or more preseed files through commandline option