From cb6e1754c0726c180acbe0476a1f60f8aaeac856 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 8 May 2022 16:03:48 +0200 Subject: Adding comments about debconf hierarchy in debconf build script. Signed-off-by: Daniel Baumann --- share/build-scripts/debconf.d/0001-preseed-file | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'share') 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 -- cgit v1.2.3