From 4d7ca1ef1fed8279d234c77c900271ce66d71a5b Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 7 Dec 2017 19:00:17 +0100 Subject: Automatically take default preseeding file from /etc/container-tools/debconf if available. Signed-off-by: Daniel Baumann --- share/scripts/debconf.d/0001-preseed-file | 5 +++++ 1 file changed, 5 insertions(+) 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, -- cgit v1.2.3