summaryrefslogtreecommitdiff
path: root/scripts/build/binary_disk
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2015-02-07 06:50:28 +0100
committerDaniel Baumann <mail@daniel-baumann.ch>2015-02-07 06:50:28 +0100
commit0c94983071ad4800961df4a1707add9f612faa5c (patch)
treeed43bb899782920667b6be6cd89c72c87b5fde6c /scripts/build/binary_disk
parent151e21291c3c5256358f38a4d1df10d6d46e87e4 (diff)
downloadvyos-live-build-0c94983071ad4800961df4a1707add9f612faa5c.tar.gz
vyos-live-build-0c94983071ad4800961df4a1707add9f612faa5c.zip
Using same logic to create the source/.disk/archive_trace for binary/.disk/archive_trace too (Closes: #774200).
Diffstat (limited to 'scripts/build/binary_disk')
-rwxr-xr-xscripts/build/binary_disk16
1 files changed, 14 insertions, 2 deletions
diff --git a/scripts/build/binary_disk b/scripts/build/binary_disk
index c3ac058f3..5dce94123 100755
--- a/scripts/build/binary_disk
+++ b/scripts/build/binary_disk
@@ -81,8 +81,20 @@ esac
if [ -n "${TRACE}" ]
then
- echo "$(wget -q ${LB_PARENT_MIRROR_BOOTSTRAP}/${TRACE} -O - | head -n 1)" \
- > binary/.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)" \
+ > binary/.disk/archive_trace
+
+ echo "$(echo ${LB_MIRROR_BOOTSTRAP} | awk -F:// '{ print $2 }'): $(wget -q ${LB_MIRROR_BOOTSTRAP}/${TRACE} -O - | head -n 1)" \
+ >> binary/.disk/archive_trace
+ ;;
+
+ false)
+ echo "$(wget -q ${LB_PARENT_MIRROR_BOOTSTRAP}/${TRACE} -O - | head -n 1)" \
+ > binary/.disk/archive_trace
+ ;;
+ esac
fi
case "${LB_INITRAMFS}" in