summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2019-02-26 03:39:11 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2019-02-26 03:39:11 +0000
commitb7dd264dbd0526f137139733d6ae5ff62e73a1d1 (patch)
treea9e4d3d787c82b39b24eee6399097676259d05d1 /share
parentRemoving armel and armhf support in container debconf create script. (diff)
downloadcompute-tools-b7dd264dbd0526f137139733d6ae5ff62e73a1d1.tar.xz
compute-tools-b7dd264dbd0526f137139733d6ae5ff62e73a1d1.zip
Adding comment to debian sources.list in container debconf create script.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to 'share')
-rwxr-xr-xshare/scripts/debconf12
1 files changed, 10 insertions, 2 deletions
diff --git a/share/scripts/debconf b/share/scripts/debconf
index ac59b75..a78258e 100755
--- a/share/scripts/debconf
+++ b/share/scripts/debconf
@@ -276,7 +276,11 @@ Configure_apt ()
PARENT_AREA="$(echo ${PARENT_ARCHIVE_AREAS} | sed -e 's|,| |g')"
PARENT_DIST="$(echo ${PARENT_DISTRIBUTION} | sed -e 's|-backports||')"
- echo "deb ${PARENT_MIRROR} ${PARENT_DIST} ${PARENT_AREA}" > "${DIRECTORY}/etc/apt/sources.list.d/debian.list"
+cat > "${DIRECTORY}/etc/apt/sources.list.d/debian.list" << EOF
+# /etc/apt/sources.list.d/debian.list
+
+deb ${PARENT_MIRROR} ${PARENT_DIST} ${PARENT_AREA}
+EOF
case "${MODE}" in
progress-linux)
@@ -379,7 +383,11 @@ Configure_system ()
PARENT_AREA="$(echo ${PARENT_ARCHIVE_AREAS} | sed -e 's|,| |g')"
PARENT_DIST="$(echo ${PARENT_DISTRIBUTION} | sed -e 's|-backports||')"
- echo "deb ${PARENT_MIRROR} ${PARENT_DIST} ${PARENT_AREA}" > "${DIRECTORY}/etc/apt/sources.list.d/debian.list"
+cat > "${DIRECTORY}/etc/apt/sources.list.d/debian.list" << EOF
+# /etc/apt/sources.list.d/debian.list
+
+deb ${PARENT_MIRROR} ${PARENT_DIST} ${PARENT_AREA}
+EOF
for PARENT_REPO in ${PARENT_ARCHIVES}
do