summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLyndon Brown <jnqnfe@gmail.com>2020-02-12 18:48:39 +0000
committerLyndon Brown <jnqnfe@gmail.com>2020-03-05 21:34:38 +0000
commit6997f99c9f0c1e82476f62472b2926ec3cb0379a (patch)
tree38999638c6d699b6b731a9aee58a451a01770781
parentb13a61d5199fb5ed349fc9191c93d6a3d63e6c07 (diff)
downloadvyos-live-build-6997f99c9f0c1e82476f62472b2926ec3cb0379a.tar.gz
vyos-live-build-6997f99c9f0c1e82476f62472b2926ec3cb0379a.zip
installer: improve documentation a little
Gbp-Dch: Ignore
-rwxr-xr-xscripts/build/installer_debian-installer12
1 files changed, 7 insertions, 5 deletions
diff --git a/scripts/build/installer_debian-installer b/scripts/build/installer_debian-installer
index c14c65514..60798c3f6 100755
--- a/scripts/build/installer_debian-installer
+++ b/scripts/build/installer_debian-installer
@@ -528,7 +528,7 @@ then
gunzip -c Packages.derivative.gz > Packages.derivative
fi
- # Sorting udebs
+ # Put derived first to prefer them
if [ "${LB_DERIVATIVE}" = "true" ]
then
UDEBS="$(awk '/Filename: / { print $2 }' Packages.derivative)"
@@ -536,7 +536,7 @@ then
UDEBS="${UDEBS} $(awk '/Filename: / { print $2 }' Packages)"
- # Downloading udebs packages
+ # Downloading udeb packages
Echo_message "Downloading udebs..."
if [ "${LB_DERIVATIVE}" = "true" ]
@@ -546,12 +546,12 @@ then
for UDEB in ${UDEBS}
do
+ # Copy from cache if available, otherwise download
if [ -f ../cache/packages.installer_debian-installer.udeb/"$(basename ${UDEB})" ]
then
- # Copying cached udebs
cp ../cache/packages.installer_debian-installer.udeb/"$(basename ${UDEB})" ./
else
- # Downloading udebs
+ # Skip if already got (any version), i.e. should parent and derive both list it
if ! ls "$(basename ${UDEB} | awk -F_ '{ print $1 }')"_* > /dev/null 2>&1
then
wget ${WGET_OPTIONS} "${LB_MIRROR_CHROOT}"/${UDEB} || wget ${WGET_OPTIONS} "${LB_PARENT_MIRROR_CHROOT}"/${UDEB}
@@ -615,6 +615,7 @@ then
# Excluding udebs from excludes because we want them to be in the image on purpose
sed -i -e 's|di-utils-exit-installer||' exclude # used for live-installer-launcher
+ # Remove all udebs to be excluded from inclusion
while read EXCLUDE
do
if [ "${LB_DEBIAN_INSTALLER}" = "live" ] && [ "${EXCLUDE}" = "live-installer" ]
@@ -625,7 +626,7 @@ then
rm -f ${EXCLUDE}_*.udeb
done < exclude
- # Moving udebs
+ # Sort udebs into alphabetised pool structure
for UDEB in ${UDEBS}
do
if [ -f "$(basename ${UDEB})" ]
@@ -637,6 +638,7 @@ then
# Creating udeb indices
mkdir -p dists/"${LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION}"/main/debian-installer/binary-"${LB_ARCHITECTURES}"
+
cd "${OLDPWD}"
mv binary.udeb chroot/root