installer: misc small tweaks

Gbp-Dch: Ignore
This commit is contained in:
Lyndon Brown 2020-03-15 21:22:53 +00:00
parent 2abf7bc65b
commit 9a878350d3
1 changed files with 3 additions and 3 deletions

View File

@ -216,6 +216,7 @@ Download_file () {
fi
fi
# Use hardlink if same device
if [ "$(stat --printf %d "${_LB_CACHE_DIR}/")" = "$(stat --printf %d ./)" ]
then
CP_OPTIONS="-l"
@ -402,7 +403,7 @@ then
# Download .debs of the required packages
Chroot chroot ${_LB_APT_COMMAND} install ${DI_PACKAGES} ${DI_FIRMWARE_PACKAGES} ${DI_REQ_PACKAGES}
# Drop the packages already installed that d-i doesn't explicitely need
# Drop the packages already installed that d-i doesn't explicitly need
_REMAINING_PACKAGES="$(echo ${DI_FIRMWARE_PACKAGES} ${DI_REQ_PACKAGES} | sed -e 's# #|#g')"
_REMAINING_PACKAGES="$(Chroot_package_list chroot | grep -E -v "^(${_REMAINING_PACKAGES})\$")"
@ -417,8 +418,7 @@ then
mv chroot/binary.deb ./
for _ARCHIVE_AREA in $(echo ${LB_PARENT_ARCHIVE_AREAS} ${LB_ARCHIVE_AREAS})
do
for _ARCHIVE_AREA in ${LB_PARENT_ARCHIVE_AREAS} ${LB_ARCHIVE_AREAS}; do
mkdir -p binary/pool/${_ARCHIVE_AREA}
done