summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2025-01-26 18:46:48 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2025-01-26 19:09:40 +0000
commit80fe1027945a730afb0258669263db2567451dc0 (patch)
treee38f35cc23dac6043633df0e8b79feceae6e51f7
parentAdding support for Debian trixie in debconf container build-script. (diff)
downloadcompute-tools-80fe1027945a730afb0258669263db2567451dc0.tar.xz
compute-tools-80fe1027945a730afb0258669263db2567451dc0.zip
Updating signed-by apt keyring handling for non-released distributions in debconf container build-script.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
-rwxr-xr-xshare/build-scripts/debconf30
1 files changed, 30 insertions, 0 deletions
diff --git a/share/build-scripts/debconf b/share/build-scripts/debconf
index 9f5a948..cf3922a 100755
--- a/share/build-scripts/debconf
+++ b/share/build-scripts/debconf
@@ -503,9 +503,17 @@ URIs: ${PARENT_MIRROR}
Suites: ${PARENT_DIST}
Components: ${PARENT_AREA}
PDiffs: no
+EOF
+
+ if [ -e "${DIRECTORY}/usr/share/keyrings/debian-archive-${PARENT_DIST}-stable.gpg" ]
+ then
+
+cat >> "${DIRECTORY}/etc/apt/sources.list.d/debian.sources" << EOF
Signed-By: /usr/share/keyrings/debian-archive-${PARENT_DIST}-stable.gpg
EOF
+ fi
+
case "${MODE}" in
progress-linux)
@@ -589,9 +597,17 @@ URIs: ${PARENT_MIRROR}
Suites: ${PARENT_DIST}
Components: ${PARENT_AREA}
PDiffs: no
+EOF
+
+ if [ -e "${DIRECTORY}/usr/share/keyrings/debian-archive-${PARENT_DIST}-stable.gpg" ]
+ then
+
+cat >> "${DIRECTORY}/etc/apt/sources.list.d/debian.sources" << EOF
Signed-By: /usr/share/keyrings/debian-archive-${PARENT_DIST}-stable.gpg
EOF
+ fi
+
AUTOMATIC_SUITES=""
for PARENT_REPO in ${PARENT_ARCHIVES}
@@ -626,9 +642,16 @@ URIs: ${PARENT_MIRROR}
Suites: ${AUTOMATIC_SUITES}
Components: ${PARENT_AREA}
PDiffs: no
+EOF
+
+ if [ -e "${DIRECTORY}/usr/share/keyrings/debian-archive-${PARENT_DIST}-automatic.gpg" ]
+ then
+
+cat >> "${DIRECTORY}/etc/apt/sources.list.d/debian.sources" << EOF
Signed-By: /usr/share/keyrings/debian-archive-${PARENT_DIST}-automatic.gpg
EOF
+ fi
fi
SECURITY_SUITES=""
@@ -657,9 +680,16 @@ URIs: ${PARENT_MIRROR_SECURITY}
Suites: ${PARENT_DIST}-security
Components: ${PARENT_AREA}
PDiffs: no
+EOF
+
+ if [ -e "${DIRECTORY}/usr/share/keyrings/debian-archive-${PARENT_DIST}-security-automatic.gpg" ]
+ then
+
+cat >> "${DIRECTORY}/etc/apt/sources.list.d/debian.sources" << EOF
Signed-By: /usr/share/keyrings/debian-archive-${PARENT_DIST}-security-automatic.gpg
EOF
+ fi
fi
case "${MODE}" in