From 67ed26b29d2b61c6146c7073f0b825fcf6a85aaa Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 28 Jan 2017 22:38:19 +0100 Subject: Allowing @NAME@ variable in preseed files to allow for more flexibel preseed templating. Signed-off-by: Daniel Baumann --- share/scripts/debconf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'share/scripts/debconf') diff --git a/share/scripts/debconf b/share/scripts/debconf index 64d8b8f..6d0410a 100755 --- a/share/scripts/debconf +++ b/share/scripts/debconf @@ -622,7 +622,7 @@ EOF then for FILE in ${PRESEED_FILE} do - cat "${FILE}" >> "${DIRECTORY}/preseed.cfg" + sed -e "s|@NAME@|${NAME}|g" "${FILE}" >> "${DIRECTORY}/preseed.cfg" done Chroot "${DIRECTORY}" "debconf-set-selections preseed.cfg" -- cgit v1.2.3