summaryrefslogtreecommitdiff
path: root/scripts/build/chroot_archives
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2013-06-25 09:10:39 +0200
committerDaniel Baumann <mail@daniel-baumann.ch>2013-06-25 09:12:03 +0200
commit613f8cfd6d04eb2dbdaee9b6b22b33c27a4db106 (patch)
treede5ebaf246537229b637cf8c0b58758c3b93912f /scripts/build/chroot_archives
parent86746ac72fb9dc558e40914de9aea26ad58d19b1 (diff)
downloadvyos-live-build-613f8cfd6d04eb2dbdaee9b6b22b33c27a4db106.tar.gz
vyos-live-build-613f8cfd6d04eb2dbdaee9b6b22b33c27a4db106.zip
Dropping global archive definitions shipped in /usr/share/live/build/archives (same as with packagelists, hidden archive 'magic' is gone now in favour of explicit config tree configuration).
Diffstat (limited to 'scripts/build/chroot_archives')
-rwxr-xr-xscripts/build/chroot_archives131
1 files changed, 0 insertions, 131 deletions
diff --git a/scripts/build/chroot_archives b/scripts/build/chroot_archives
index 0277819f5..6947c9dd5 100755
--- a/scripts/build/chroot_archives
+++ b/scripts/build/chroot_archives
@@ -189,78 +189,6 @@ EOF
fi
fi
- # Configure third-party archives
- if [ -n "${LB_ARCHIVES}" ]
- then
- for REPOSITORY in ${LB_ARCHIVES}
- do
- # ubuntu workaround to allow using live-systems.org
- case "${LB_MODE}" in
- ubuntu)
- if [ "${REPOSITORY}" = "live-systems.org" ]
- then
- _DISTRIBUTION="sid"
- else
- _DISTRIBUTION="${LB_PARENT_DISTRIBUTION}"
- fi
- ;;
-
- *)
- _DISTRIBUTION="${LB_PARENT_DISTRIBUTION}"
- ;;
- esac
-
- # Prefer archives from the config tree
- # over the global ones.
- if ! ls "${_BASE}/archives/${REPOSITORY}"* > /dev/null 2>&1
- then
- continue
- fi
-
- # Adding apt sources (chroot)
- for _FILE in "${_BASE}/archives/${REPOSITORY}" "${_BASE}/archives/${REPOSITORY}.chroot"
- do
- if [ -e "${_FILE}" ]
- then
- sed -e "s|@DISTRIBUTION@|${_DISTRIBUTION}|g" \
- -e "s|@PARENT_DISTRIBUTION@|${LB_PARENT_DISTRIBUTION}|g" \
- -e "s|@ARCHIVE_AREAS@|${LIVE_IMAGE_PARENT_ARCHIVE_AREAS}|g" \
- "${_FILE}" > "chroot/etc/apt/sources.list.d/${REPOSITORY}.list"
- fi
- done
-
- # Adding apt configuration (chroot)
- for _FILE in "${_BASE}/archives/${REPOSITORY}.conf" "${_BASE}/archives/${REPOSITORY}.conf.chroot"
- do
- if [ -e "${_FILE}" ]
- then
- cp "${_FILE}" "chroot/etc/apt/conf.d/${REPOSITORY}.conf"
- fi
- done
-
- # Adding apt preferences (chroot)
- for _FILE in "${_BASE}/archives/${REPOSITORY}.pref" "${_BASE}/archives/${REPOSITORY}.pref.chroot"
- do
- if [ -e "${_FILE}" ]
- then
- cp "${_FILE}" "chroot/etc/apt/preferences.d/${REPOSITORY}.pref"
- fi
- done
-
- # Adding apt keys (chroot)
- if [ "${LB_APT_SECURE}" != false ]
- then
- for _FILE in "${_BASE}/archives/${REPOSITORY}.key" "${_BASE}/archives/${REPOSITORY}.key.chroot"
- do
- if [ -e "${_FILE}" ]
- then
- cat "${_FILE}" | Chroot chroot "apt-key add -"
- fi
- done
- fi
- done
- fi
-
# Adding local apt sources (chroot)
for FILE in config/archives/*.list config/archives/*.list.chroot
do
@@ -757,65 +685,6 @@ EOF
rm -f chroot/etc/apt/conf.d/*
rm -f chroot/etc/apt/preferences.d/*
- # Configure third-party archives
- if [ -n "${LB_ARCHIVES}" ]
- then
- for REPOSITORY in ${LB_ARCHIVES}
- do
- # Removing sources.list entries (chroot)
- rm -f "chroot/etc/apt/sources.list.d/${REPOSITORY}.list"
-
- # Prefer archives from the config tree
- # over the global ones.
- if ! ls "${_BASE}/archives/${REPOSITORY}"* > /dev/null 2>&1
- then
- continue
- fi
-
- # Adding apt sources (binary)
- for _FILE in "${_BASE}/archives/${REPOSITORY}" "${_BASE}/archives/${REPOSITORY}.binary"
- do
- if [ -e "${_FILE}" ]
- then
- sed -e "s|@DISTRIBUTION@|${LB_PARENT_DISTRIBUTION}|g" \
- -e "s|@PARENT_DISTRIBUTION@|${LB_PARENT_DISTRIBUTION}|g" \
- -e "s|@ARCHIVE_AREAS@|${LIVE_IMAGE_PARENT_ARCHIVE_AREAS}|g" \
- "${_FILE}" > "chroot/etc/apt/sources.list.d/${REPOSITORY}.list"
- fi
- done
-
- # Adding apt configuration (binary)
- for _FILE in "${_BASE}/archives/${REPOSITORY}.conf" "${_BASE}/archives/${REPOSITORY}.conf.binary"
- do
- if [ -e "${_FILE}" ]
- then
- cp "${_FILE}" "chroot/etc/apt/conf.d/${REPOSITORY}.conf"
- fi
- done
-
- # Adding apt preferences (binary)
- for _FILE in "${_BASE}/archives/${REPOSITORY}.pref" "${_BASE}/archives/${REPOSITORY}.pref.binary"
- do
- if [ -e "${_FILE}" ]
- then
- cp "${_FILE}" "chroot/etc/apt/preferences.d/${REPOSITORY}.pref"
- fi
- done
-
- # Adding apt keys (binary)
- if [ "${LB_APT_SECURE}" != false ]
- then
- for _FILE in "${_BASE}/archives/${REPOSITORY}.key" "${_BASE}/archives/${REPOSITORY}.key.binary"
- do
- if [ -e "${_FILE}" ]
- then
- cat "${_FILE}" | Chroot chroot "apt-key add -"
- fi
- done
- fi
- done
- fi
-
# Adding local apt sources (binary)
for FILE in config/archives/*.list config/archives/*.list.binary
do