installer: move an exclude removal outside of loop
This commit is contained in:
parent
19e1a5b9c2
commit
2ea6eeefa2
|
@ -632,16 +632,13 @@ EOF
|
||||||
|
|
||||||
# Excluding udebs from excludes because we want them to be in the image on purpose
|
# 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
|
sed -i -e 's|di-utils-exit-installer||' exclude # used for live-installer-launcher
|
||||||
|
if [ "${LB_DEBIAN_INSTALLER}" = "live" ]; then
|
||||||
|
sed -i -e 's|live-installer||' exclude
|
||||||
|
fi
|
||||||
|
|
||||||
# Remove all udebs to be excluded from inclusion
|
# Remove all udebs to be excluded from inclusion
|
||||||
while read EXCLUDE
|
while read EXCLUDE; do
|
||||||
do
|
rm -f "${EXCLUDE}_*.udeb"
|
||||||
if [ "${LB_DEBIAN_INSTALLER}" = "live" ] && [ "${EXCLUDE}" = "live-installer" ]
|
|
||||||
then
|
|
||||||
continue
|
|
||||||
fi
|
|
||||||
|
|
||||||
rm -f ${EXCLUDE}_*.udeb
|
|
||||||
done < exclude
|
done < exclude
|
||||||
|
|
||||||
# Sort udebs into alphabetised pool structure
|
# Sort udebs into alphabetised pool structure
|
||||||
|
|
Loading…
Reference in New Issue