diff options
author | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2017-12-01 11:22:46 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2017-12-05 13:35:43 +0000 |
commit | 7fd23ebba269f6e63a3df13b296d40135aeac522 (patch) | |
tree | 53010b899ed15a5a264d0d980b360d747a04eff3 /share/scripts | |
parent | Adding SPDX License Identifiers. (diff) | |
download | compute-tools-7fd23ebba269f6e63a3df13b296d40135aeac522.tar.xz compute-tools-7fd23ebba269f6e63a3df13b296d40135aeac522.zip |
Automatically take matching preseeding files from /etc/container-tools/debconf.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to 'share/scripts')
-rwxr-xr-x | share/scripts/debconf.d/0001-preseed-file | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/share/scripts/debconf.d/0001-preseed-file b/share/scripts/debconf.d/0001-preseed-file index 495803a..efd59ed 100755 --- a/share/scripts/debconf.d/0001-preseed-file +++ b/share/scripts/debconf.d/0001-preseed-file @@ -32,6 +32,12 @@ then # user specified one or more preseed files through commandline option db_set cnt-debconf/preseed-file "${PRESEED_FILE}" db_fset cnt-debconf/preseed-file seen true +elif [ -e "${CONFIG}/${NAME}.cfg" ] +then + # user did not specify a pressed file, but there is a matching one + # 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 ls "${CONFIG}"/*.cfg > /dev/null 2>&1 then # user has not specified preseed files through commandline option, |