diff options
-rwxr-xr-x | scripts/build/bootstrap_archives | 4 | ||||
-rwxr-xr-x | scripts/build/chroot_archives | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/scripts/build/bootstrap_archives b/scripts/build/bootstrap_archives index 0545f58f5..054b927e1 100755 --- a/scripts/build/bootstrap_archives +++ b/scripts/build/bootstrap_archives @@ -58,13 +58,13 @@ Create_lockfile .lock # Restoring cache Restore_cache cache/packages.chroot -# Configure custom sources.list - +# Mount local repository if echo "${LB_PARENT_MIRROR_CHROOT}" | grep -q '^file:/' then Chroot_bind_path chroot "$(echo ${LB_PARENT_MIRROR_CHROOT} | sed -e 's|file:||')" fi +# Configure custom sources.list cat > chroot/etc/apt/${_PARENT_FILE} << EOF deb ${LB_PARENT_MIRROR_CHROOT} ${LB_PARENT_DISTRIBUTION_CHROOT} ${LB_PARENT_ARCHIVE_AREAS} EOF diff --git a/scripts/build/chroot_archives b/scripts/build/chroot_archives index fc5cc78d6..40cc25601 100755 --- a/scripts/build/chroot_archives +++ b/scripts/build/chroot_archives @@ -60,13 +60,14 @@ case "${1}" in # Restoring cache Restore_cache cache/packages.chroot - # Configure custom sources.list - + # Mount local repository if echo "${LB_PARENT_MIRROR_CHROOT}" | grep -q '^file:/' then Chroot_bind_path chroot "$(echo ${LB_PARENT_MIRROR_CHROOT} | sed -e 's|file:||')" fi + # Configure custom sources.list + cat > chroot/etc/apt/${_PARENT_FILE} << EOF deb ${LB_PARENT_MIRROR_CHROOT} ${LB_PARENT_DISTRIBUTION_CHROOT} ${LB_PARENT_ARCHIVE_AREAS} EOF |