diff options
author | Daniel Baumann <daniel@debian.org> | 2011-02-14 14:32:10 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 19:20:43 +0100 |
commit | ebf1ea52381c1af715b8e77cf06d609a22bf4ce0 (patch) | |
tree | 6204dad935cc78f57300c6d81106514d36859ec1 /scripts/build/lb_source_disk | |
parent | ff807068b95f0b116338ee94a5da94823799e2aa (diff) | |
download | vyos-live-build-ebf1ea52381c1af715b8e77cf06d609a22bf4ce0.tar.gz vyos-live-build-ebf1ea52381c1af715b8e77cf06d609a22bf4ce0.zip |
Adding mirror handling for derivatives.
Diffstat (limited to 'scripts/build/lb_source_disk')
-rwxr-xr-x | scripts/build/lb_source_disk | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/scripts/build/lb_source_disk b/scripts/build/lb_source_disk index e88a92b25..3d21223c6 100755 --- a/scripts/build/lb_source_disk +++ b/scripts/build/lb_source_disk @@ -74,8 +74,20 @@ esac if [ -n "${TRACE}" ] then - echo "$(wget -q ${LB_PARENT_MIRROR_BOOTSTRAP}/${TRACE} -O - | head -n 1)" \ - > source/.disk/archive_trace + case "${LB_DERIVATIVE}" in + true) + echo "$(echo ${LB_PARENT_MIRROR_BOOTSTRAP} | awk -F:// '{ print $2 }'): $(wget -q ${LB_PARENT_MIRROR_BOOTSTRAP}/${TRACE} -O - | head -n 1)" \ + > source/.disk/archive_trace + + echo "$(echo ${LB_MIRROR_BOOTSTRAP} | awk -F:// '{ print $2 }'): $(wget -q ${LB_MIRROR_BOOTSTRAP}/${TRACE} -O - | head -n 1)" \ + >> source/.disk/archive_trace + ;; + + false) + echo "$(wget -q ${LB_PARENT_MIRROR_BOOTSTRAP}/${TRACE} -O - | head -n 1)" \ + > source/.disk/archive_trace + ;; + esac fi case "${LB_DEBIAN_INSTALLER}" in |