2007-09-23 08:04:52 +00:00
#!/bin/sh
2010-09-02 11:12:37 +00:00
## live-build(7) - System Build Scripts
2015-01-04 18:05:39 -01:00
## Copyright (C) 2006-2015 Daniel Baumann <mail@daniel-baumann.ch>
2010-09-02 11:12:37 +00:00
##
2012-07-29 23:59:00 +00:00
## This program comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
2010-09-02 11:12:37 +00:00
## This is free software, and you are welcome to redistribute it
## under certain conditions; see COPYING for details.
2007-09-23 08:04:52 +00:00
set -e
2007-09-23 08:05:11 +00:00
# Including common functions
2012-08-27 13:52:29 +00:00
[ -e "${LIVE_BUILD}/scripts/build.sh" ] && . "${LIVE_BUILD}/scripts/build.sh" || . /usr/lib/live/build.sh
2007-09-23 08:04:52 +00:00
2007-09-23 08:05:11 +00:00
# Setting static variables
2015-02-05 02:30:47 -01:00
DESCRIPTION="Install debian-installer into binary"
2007-09-23 08:04:52 +00:00
HELP=""
USAGE="${PROGRAM} [--force]"
Arguments "${@}"
# Reading configuration files
2008-10-28 14:26:17 -01:00
Read_conffiles config/all config/common config/bootstrap config/chroot config/binary config/source
2007-09-23 08:04:52 +00:00
Set_defaults
2009-12-13 19:17:45 -01:00
if [ "${_DEBUG}" = "true" ]
2008-08-10 22:00:03 +00:00
then
WGET_OPTIONS="${WGET_OPTIONS} --verbose"
2009-12-13 19:17:45 -01:00
elif [ "${_QUIET}" = "true" ]
2007-09-23 12:05:14 +00:00
then
WGET_OPTIONS="${WGET_OPTIONS} --quiet"
2008-08-10 22:00:03 +00:00
else
WGET_OPTIONS="${WGET_OPTIONS} --no-verbose"
2007-09-23 12:05:14 +00:00
fi
2008-03-22 00:30:55 -01:00
# Check d-i configuration
2010-09-07 13:11:20 +00:00
case "${LB_DEBIAN_INSTALLER}" in
2015-01-05 15:53:53 -01:00
cdrom|netinst|netboot|businesscard|live)
2007-09-23 08:05:15 +00:00
;;
2015-01-05 15:53:53 -01:00
none)
2007-09-23 08:05:21 +00:00
exit 0
;;
2007-09-23 08:05:13 +00:00
*)
2010-09-07 13:11:20 +00:00
Echo_error "debian-installer flavour %s not supported." "${LB_DEBIAN_INSTALLER}"
2007-09-23 08:05:13 +00:00
exit 1
;;
esac
2007-09-23 08:04:52 +00:00
2007-09-23 08:05:11 +00:00
Echo_message "Begin installing debian-installer..."
2007-09-23 08:04:52 +00:00
# Requiring stage file
2012-06-03 20:42:41 +00:00
Require_stagefile .build/config .build/bootstrap
2007-09-23 08:04:52 +00:00
# Checking stage file
2013-08-07 16:13:37 +00:00
Check_stagefile .build/installer_debian-installer
2007-09-23 08:04:52 +00:00
# Checking lock file
Check_lockfile .lock
# Creating lock file
Create_lockfile .lock
2008-04-16 05:19:10 +00:00
# Checking depends
2015-01-04 16:22:03 -01:00
Check_package host /usr/bin/wget wget
2015-01-04 16:08:09 -01:00
Check_package chroot /usr/bin/apt-ftparchive apt-utils
2008-04-16 05:19:10 +00:00
# Restoring cache
2015-01-06 02:46:37 -01:00
Restore_package_cache binary
2008-04-16 05:19:10 +00:00
# Installing depends
Install_package
2007-09-23 08:04:52 +00:00
# Setting destination directory
2012-12-19 08:52:13 -01:00
case "${LIVE_IMAGE_TYPE}" in
2012-07-18 17:11:55 +00:00
netboot)
2014-12-10 05:39:58 -01:00
DESTDIR="tftpboot/debian-install/${LB_ARCHITECTURES}"
2007-09-23 08:04:52 +00:00
;;
2011-09-13 07:10:28 +00:00
hdd*|tar)
2007-09-23 08:05:12 +00:00
DESTDIR="binary/install"
2007-09-23 08:04:52 +00:00
;;
2009-07-15 12:17:35 +00:00
*)
DESTDIR="binary/install"
;;
2007-09-23 08:04:52 +00:00
esac
2008-06-14 16:22:57 +00:00
# Set d-i image type
2010-09-07 13:11:20 +00:00
case "${LB_DEBIAN_INSTALLER}" in
2008-06-14 16:22:57 +00:00
businesscard|netboot|netinst)
2008-06-14 15:41:58 +00:00
DI_IMAGE_TYPE="netboot"
2008-03-22 17:09:46 -01:00
;;
*)
2012-12-19 08:52:13 -01:00
case "${LIVE_IMAGE_TYPE}" in
2012-07-18 17:11:55 +00:00
netboot)
2008-08-11 00:27:32 +00:00
DI_IMAGE_TYPE="netboot"
2008-03-22 17:09:46 -01:00
;;
2008-06-14 16:22:57 +00:00
2008-03-22 17:09:46 -01:00
*)
2008-08-11 00:27:32 +00:00
DI_IMAGE_TYPE="cdrom"
2008-03-22 17:09:46 -01:00
;;
esac
;;
esac
2009-08-04 23:16:57 +00:00
# Set architecture-specific variables
2014-12-10 05:39:58 -01:00
case "${LB_ARCHITECTURES}" in
2011-07-21 15:57:15 +00:00
armel)
2014-12-10 05:58:02 -01:00
DEFAULT_FLAVOUR="$(echo ${LB_LINUX_FLAVOURS} | awk '{ print $1 }')"
2011-07-21 15:57:15 +00:00
case "${DI_IMAGE_TYPE}" in
cdrom)
DI_REMOTE_BASE="${DEFAULT_FLAVOUR}/cdrom"
;;
netboot)
DI_REMOTE_BASE="${DEFAULT_FLAVOUR}/netboot"
;;
esac
DI_REMOTE_KERNEL="vmlinuz"
DI_REMOTE_BASE_GTK="${DI_REMOTE_BASE}/gtk"
;;
2008-06-14 16:27:42 +00:00
powerpc)
2008-07-04 21:25:47 +00:00
case "${DI_IMAGE_TYPE}" in
cdrom)
2014-12-10 05:39:58 -01:00
DI_REMOTE_BASE="${LB_ARCHITECTURES}/cdrom"
2008-07-04 21:25:47 +00:00
;;
netboot)
2014-12-10 05:39:58 -01:00
DI_REMOTE_BASE="${LB_ARCHITECTURES}/netboot"
2008-07-04 21:25:47 +00:00
;;
esac
DI_REMOTE_KERNEL="vmlinux"
DI_REMOTE_BASE_GTK="${DI_REMOTE_BASE}/gtk"
2008-06-14 16:27:42 +00:00
;;
2008-07-04 21:25:47 +00:00
2009-08-04 23:16:57 +00:00
*)
case "${DI_IMAGE_TYPE}" in
netboot)
2014-12-10 05:39:58 -01:00
DI_REMOTE_BASE="netboot/debian-installer/${LB_ARCHITECTURES}"
DI_REMOTE_BASE_GTK="netboot/gtk/debian-installer/${LB_ARCHITECTURES}"
2009-08-04 23:16:57 +00:00
DI_REMOTE_KERNEL="linux"
;;
cdrom)
DI_REMOTE_BASE="cdrom"
DI_REMOTE_BASE_GTK="cdrom/gtk"
DI_REMOTE_KERNEL="vmlinuz"
;;
esac
;;
2008-06-14 16:27:42 +00:00
esac
2010-12-05 12:27:08 -01:00
Check_multiarchitectures
2007-09-23 08:04:52 +00:00
2008-01-15 01:43:42 -01:00
Install_file() {
2008-03-22 17:05:42 -01:00
local FILE
FILE="${1}"
2012-04-26 18:29:37 +00:00
local ARCHIVE_AREA
ARCHIVE_AREA="$(dpkg -I ${FILE} | awk '/^.*Section: / { print $2 }')"
if echo "${ARCHIVE_AREA}" | grep -qs '/'
then
ARCHIVE_AREA="$(echo ${ARCHIVE_AREA} | awk -F/ '{ print $1 }')"
else
ARCHIVE_AREA="main"
fi
2008-03-22 17:05:42 -01:00
local TARGET
2012-04-26 18:29:37 +00:00
TARGET="${2}/${ARCHIVE_AREA}"
2008-01-15 01:43:42 -01:00
SOURCE="$(dpkg -f ${FILE} Source | awk '{ print $1 }')"
if [ -z "${SOURCE}" ]
then
SOURCE="$(basename ${FILE} | awk -F_ '{ print $1 }')"
fi
case "${SOURCE}" in
lib?*)
2008-01-15 06:25:29 -01:00
LETTER="$(echo ${SOURCE} | sed 's|\(....\).*|\1|')"
2008-01-15 01:43:42 -01:00
;;
*)
2008-01-15 06:25:29 -01:00
LETTER="$(echo ${SOURCE} | sed 's|\(.\).*|\1|')"
2008-01-15 01:43:42 -01:00
;;
esac
# Install directory
2008-01-15 18:42:28 -01:00
mkdir -p "${TARGET}"/"${LETTER}"/"${SOURCE}"
2008-01-15 01:43:42 -01:00
# Move files
2008-01-15 18:42:28 -01:00
cp "${FILE}" "${TARGET}"/"${LETTER}"/"${SOURCE}"
2008-01-15 01:43:42 -01:00
}
2008-07-24 04:48:47 +00:00
# Set absolute directory for caching; we require it when we call Download_file
# from a non-standard cwd.
2013-08-07 16:13:37 +00:00
_LB_CACHE_DIR="$(pwd)/cache/installer_debian-installer"
2008-07-24 04:48:47 +00:00
2008-07-24 03:42:59 +00:00
Download_file () {
2010-09-07 13:11:20 +00:00
local _LB_TARGET
_LB_TARGET="${1}"
2008-07-24 03:42:59 +00:00
2010-09-07 13:11:20 +00:00
local _LB_URL
_LB_URL="${2}"
2008-07-24 03:42:59 +00:00
2010-09-07 13:11:20 +00:00
_LB_CACHE_FILE="${_LB_CACHE_DIR}/$(echo "${_LB_URL}" | sed 's|/|_|g')"
2008-07-24 04:48:47 +00:00
2010-09-07 13:11:20 +00:00
if [ ! -f "${_LB_CACHE_FILE}" ]
2008-07-24 04:48:47 +00:00
then
2010-09-07 13:11:20 +00:00
mkdir -p ${_LB_CACHE_DIR}
if ! wget ${WGET_OPTIONS} -O "${_LB_CACHE_FILE}" "${_LB_URL}"
2008-07-25 23:27:29 +00:00
then
2010-09-07 13:11:20 +00:00
rm -f "${_LB_CACHE_FILE}"
2008-07-25 23:27:29 +00:00
2010-09-07 13:11:20 +00:00
Echo_error "Could not download file: %s" "${_LB_URL}"
2008-07-25 23:27:29 +00:00
exit 1
fi
2008-07-24 04:48:47 +00:00
fi
2015-08-10 19:45:00 +00:00
if [ "$(stat --printf %d "${_LB_CACHE_DIR}/")" = "$(stat --printf %d ./)" ]
2008-08-07 19:08:04 +00:00
then
CP_OPTIONS="-l"
fi
2010-09-07 13:11:20 +00:00
cp -f ${CP_OPTIONS} -- "${_LB_CACHE_FILE}" "${_LB_TARGET}"
2008-07-24 03:42:59 +00:00
}
2008-06-14 16:30:32 +00:00
VMLINUZ_DI="vmlinuz"
INITRD_DI="initrd.gz"
DESTDIR_DI="${DESTDIR}"
VMLINUZ_GI="gtk/vmlinuz"
INITRD_GI="gtk/initrd.gz"
DESTDIR_GI="${DESTDIR}/gtk"
2020-02-11 16:36:54 -01:00
# Debian Installer daily builds
DAILY_DI_URL="https://d-i.debian.org/daily-images/${LB_ARCHITECTURES}/daily/"
2011-09-28 05:09:05 +00:00
case "${LB_DERIVATIVE}" in
false)
if [ "${LB_DEBIAN_INSTALLER_DISTRIBUTION}" = "daily" ]
then
# FIXME: variable name should be decupled from derivatves
LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION="sid"
2008-08-10 06:02:33 +00:00
2020-02-11 16:36:54 -01:00
URL="${DAILY_DI_URL}"
2011-09-28 05:09:05 +00:00
else
2014-12-10 05:39:58 -01:00
URL="${LB_MIRROR_DEBIAN_INSTALLER}/dists/${LB_DEBIAN_INSTALLER_DISTRIBUTION}/main/installer-${LB_ARCHITECTURES}/current/images/"
2011-09-28 05:09:05 +00:00
fi
;;
true)
if [ "${LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION}" = "daily" ]
then
LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION="sid"
2020-02-11 16:36:54 -01:00
URL="${DAILY_DI_URL}"
2011-09-28 05:09:05 +00:00
else
2014-12-10 05:39:58 -01:00
URL="${LB_PARENT_MIRROR_DEBIAN_INSTALLER}/dists/${LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION}/main/installer-${LB_ARCHITECTURES}/current/images/"
2011-09-28 05:09:05 +00:00
fi
2011-10-30 07:49:41 -01:00
2012-10-25 11:36:12 +00:00
if [ "${LB_MODE}" = "progress-linux" ]
2011-10-30 07:49:41 -01:00
then
# FIXME: normal derivatives probably don't rebuild d-i,
2012-10-25 11:36:12 +00:00
# but progress-linux does.
2014-12-10 05:39:58 -01:00
URL="${LB_MIRROR_DEBIAN_INSTALLER}/dists/${LB_DEBIAN_INSTALLER_DISTRIBUTION}/main/installer-${LB_ARCHITECTURES}/current/images/"
2011-10-30 07:49:41 -01:00
fi
2011-09-28 05:09:05 +00:00
;;
esac
2007-09-23 08:05:14 +00:00
2007-09-23 08:05:12 +00:00
mkdir -p "${DESTDIR_DI}"
2015-01-04 16:58:35 -01:00
# Downloading debian-installer
Download_file "${DESTDIR}"/"${VMLINUZ_DI}" ${URL}/${DI_REMOTE_BASE}/${DI_REMOTE_KERNEL}
Download_file "${DESTDIR}"/"${INITRD_DI}" ${URL}/${DI_REMOTE_BASE}/initrd.gz
2008-06-15 03:47:23 +00:00
2015-01-04 16:58:35 -01:00
# Downloading graphical-installer
DOWNLOAD_GTK_INSTALLER=0
if [ "${LB_DEBIAN_INSTALLER_GUI}" = "true" ]
then
2020-02-10 14:48:49 -01:00
case "${LB_ARCHITECTURES}" in
2015-01-04 16:58:35 -01:00
amd64|i386)
DOWNLOAD_GTK_INSTALLER=1
;;
2009-09-02 05:39:13 +00:00
2015-01-04 16:58:35 -01:00
powerpc)
if [ "${LB_DEBIAN_INSTALLER}" = "netboot" ]
then
DOWNLOAD_GTK_INSTALLER=1
fi
;;
esac
fi
2008-07-04 21:28:20 +00:00
2015-01-04 16:58:35 -01:00
if [ ${DOWNLOAD_GTK_INSTALLER} -eq 1 ]
then
mkdir -p "${DESTDIR_GI}"
Download_file "${DESTDIR}"/"${VMLINUZ_GI}" ${URL}/${DI_REMOTE_BASE_GTK}/${DI_REMOTE_KERNEL}
Download_file "${DESTDIR}"/"${INITRD_GI}" ${URL}/${DI_REMOTE_BASE_GTK}/initrd.gz
2008-06-15 03:47:23 +00:00
fi
2007-09-23 08:04:52 +00:00
2008-03-22 00:24:32 -01:00
# Only download additional packages if appropriate
2008-06-14 15:41:58 +00:00
if [ "${DI_IMAGE_TYPE}" != "netboot" ]
2008-03-22 00:24:32 -01:00
then
2007-09-23 08:05:13 +00:00
# Downloading additional packages
mkdir -p chroot/binary.deb/archives/partial
2012-04-26 18:29:37 +00:00
2014-12-10 05:39:58 -01:00
case "${LB_ARCHITECTURES}" in
2007-09-23 08:05:13 +00:00
amd64)
2012-12-22 17:30:43 -01:00
DI_REQ_PACKAGES="lilo grub-pc"
2015-05-03 13:53:27 +00:00
DI_PACKAGES="${DI_REQ_PACKAGES} linux-image-amd64"
2007-09-23 08:05:13 +00:00
;;
2007-09-23 08:04:52 +00:00
2009-12-09 19:54:41 -01:00
i386)
2015-07-15 10:05:52 +00:00
DI_REQ_PACKAGES="lilo grub-pc"
2015-12-14 22:07:52 -01:00
DI_PACKAGES="${DI_REQ_PACKAGES} linux-image-686-pae"
2007-09-23 08:05:13 +00:00
;;
2007-09-23 08:04:52 +00:00
2007-09-23 08:05:13 +00:00
powerpc)
2008-08-11 00:13:45 +00:00
DI_REQ_PACKAGES="yaboot"
2015-05-03 13:53:27 +00:00
DI_PACKAGES="${DI_REQ_PACKAGES} linux-image-powerpc linux-image-powerpc64 linux-image-powerpc-smp"
2007-09-23 08:05:13 +00:00
;;
esac
2013-08-26 16:57:48 +00:00
DI_PACKAGES="${DI_PACKAGES} busybox cryptsetup mdadm lvm2 xfsprogs jfsutils"
2007-09-23 08:04:52 +00:00
2010-09-20 19:49:27 +00:00
case "${LB_MODE}" in
debian)
2010-09-26 10:38:38 +00:00
DI_REQ_PACKAGES="${DI_REQ_PACKAGES} console-setup keyboard-configuration kbd"
DI_PACKAGES="${DI_PACKAGES} console-setup keyboard-configuration kbd"
2010-09-20 19:49:27 +00:00
;;
esac
2020-02-11 16:44:31 -01:00
2012-04-26 17:52:15 +00:00
# Include firmware packages
if [ "${LB_FIRMWARE_BINARY}" = "true" ]
then
# Get all firmware packages names
2012-06-04 08:41:57 +00:00
mkdir -p cache/contents.binary
FIRMWARE_PACKAGES=""
2012-04-26 17:52:15 +00:00
2020-02-11 16:44:31 -01:00
Firmware_List_From_Contents "${LB_PARENT_MIRROR_CHROOT}" "${LB_PARENT_DISTRIBUTION_CHROOT}" "${LB_PARENT_ARCHIVE_AREAS}"
firmware: fix possible duplication in firmware package lists (inefficiency)
where multiple archive areas are used, the code here on each loop is:
1) fetching the archive area contents file (compressed)
2) **appending** the output to that of the previous loop
3) searching the file for firmware references, adding to the list
since it appends rather than replaces, entries found in each loop get
re-added on each subsequent loop, resulting in duplication in the
resulting list
below I evaluate the possible solutions to explain why I chose the one
I chose, however the reader should not waste too much time worrying about
whether one of the other solution would have actually been better because
things are changed significantly in further commits shortly!
possible solutions:
a) switching to output (>) rather than append (>>), but this might fail
against an existing file
b) removing the file on each loop, but this will complicate any future
caching improvements that might be made here (currently the files are
always deleted and thus downloaded fresh)
c) allow the appending, evaluating the complete file after the loop
solution C warrants consideration of disk space consumption; currently the
compressed 'main' archive (for sid on amd64) expands to 592.3 MB (feb-2020),
'contrib' is 3.1 MB, and 'non-free' is 18.5 MB.
solution C was chosen here; the difference of accumulated file size vs.
max-single was minor enough to not be of particular concern (~613 vs.
~592 MB).
Gbp-Dch: Short
Closes: #952906
2020-02-10 17:49:34 -01:00
2014-12-10 07:19:07 -01:00
if echo ${LB_PARENT_ARCHIVE_AREAS} | grep -qs "non-free"
2012-11-22 15:07:35 -01:00
then
# Manually add firmware-linux/non-free meta package
2014-11-24 18:40:30 -01:00
if [ "${LB_DERIVATIVE}" != "true" ]
then
FIRMWARE_PACKAGES="${FIRMWARE_PACKAGES} firmware-linux"
else
case "${LB_DERIVATIVE_IS_BASED_ON}" in
debian)
FIRMWARE_PACKAGES="${FIRMWARE_PACKAGES} firmware-linux"
;;
*)
;;
esac
fi
2012-11-22 15:07:35 -01:00
fi
2012-11-02 09:50:44 -01:00
if [ "${LB_DERIVATIVE}" = "true" ]
2012-04-26 17:52:15 +00:00
then
2012-11-02 09:50:44 -01:00
# FIXME: account for the fact that PARENT_DISTRIBUTION and DISTRIBUTION might be the same (to not have overlapping cache files for contents).
2012-06-04 08:41:57 +00:00
2020-02-11 16:44:31 -01:00
Firmware_List_From_Contents "${LB_MIRROR_CHROOT}" "${LB_DISTRIBUTION_CHROOT}" "${LB_ARCHIVE_AREAS}"
2012-04-26 17:52:15 +00:00
fi
# Drop section and keep package names only
for _PACKAGE in ${FIRMWARE_PACKAGES}
do
DI_FIRMWARE_PACKAGES="${DI_FIRMWARE_PACKAGES} $(echo ${_PACKAGE} | awk -F/ '{ print $NF }')"
done
fi
2008-08-11 00:13:45 +00:00
# Set apt command prefix
2019-12-19 14:53:30 -01:00
_LB_APT_COMMAND="apt-get ${APT_OPTIONS} -o Dir::Cache=/binary.deb -o Dir::State::status=/dev/null -o APT::Install-Recommends=false --download-only"
2008-08-11 00:13:45 +00:00
2010-09-07 13:11:20 +00:00
if [ "${LB_DEBIAN_INSTALLER}" = "live" ]
2008-08-11 00:13:45 +00:00
then
# We don't want to duplicate .debs of packages in binary/pool that are already
# installed to target/ via live-installer.
#
2012-04-26 18:29:37 +00:00
# However, we need to force various packages' inclusion in binary/pool as
2008-08-11 00:13:45 +00:00
# d-i does not support (for example) re-installing grub from target/ - the grub
2008-08-17 04:58:43 +00:00
# .debs must actually exist.
2008-08-11 00:13:45 +00:00
2013-05-06 12:48:46 +00:00
# Download .debs of the required packages
Chroot chroot ${_LB_APT_COMMAND} install ${DI_PACKAGES} ${DI_FIRMWARE_PACKAGES} ${DI_REQ_PACKAGES}
2013-01-20 06:53:43 -01:00
# Drop the packages already installed that d-i doesn't explicitely need
_REMAINING_PACKAGES="$(echo ${DI_FIRMWARE_PACKAGES} ${DI_REQ_PACKAGES} | sed -e 's# #|#g')"
2019-12-19 14:53:30 -01:00
_REMAINING_PACKAGES="$(Chroot_package_list chroot | grep -E -v "^(${_REMAINING_PACKAGES})\$")"
2013-01-20 06:53:43 -01:00
for _PACKAGE in ${_REMAINING_PACKAGES}
do
2014-04-25 18:59:43 +00:00
rm -f chroot/binary.deb/archives/${_PACKAGE}_*.deb
2013-01-20 06:53:43 -01:00
done
2008-08-11 00:13:45 +00:00
else
# Download .debs of the required packages
2012-04-26 17:52:15 +00:00
Chroot chroot ${_LB_APT_COMMAND} install ${DI_PACKAGES} ${DI_FIRMWARE_PACKAGES}
2013-05-06 12:48:46 +00:00
fi
2013-01-20 06:53:43 -01:00
2007-09-23 08:05:13 +00:00
mv chroot/binary.deb ./
2008-04-17 08:42:34 +00:00
2014-12-10 07:19:07 -01:00
for _ARCHIVE_AREA in $(echo ${LB_PARENT_ARCHIVE_AREAS} ${LB_ARCHIVE_AREAS})
2012-04-26 22:20:40 +00:00
do
mkdir -p binary/pool/${_ARCHIVE_AREA}
done
2008-08-09 01:20:56 +00:00
if Find_files binary.deb/archives/*.deb
2008-01-15 18:47:50 -01:00
then
for FILE in binary.deb/archives/*.deb
do
2012-04-26 18:29:37 +00:00
Install_file "${FILE}" "binary/pool"
2008-01-15 18:47:50 -01:00
done
fi
2007-09-23 08:04:52 +00:00
2010-09-07 13:11:20 +00:00
if [ "${LB_DEBIAN_INSTALLER}" != "live" ]
2008-03-22 00:24:32 -01:00
then
2008-08-10 22:02:01 +00:00
# Including base debian packages
2012-06-04 08:52:28 +00:00
if ls cache/packages.bootstrap/*.deb > /dev/null 2>&1
2008-08-10 22:02:01 +00:00
then
2012-06-04 08:52:28 +00:00
for FILE in cache/packages.bootstrap/*.deb
2008-08-10 22:02:01 +00:00
do
2012-04-26 18:29:37 +00:00
Install_file "${FILE}" "binary/pool"
2008-08-10 22:02:01 +00:00
done
else
2012-06-04 08:52:28 +00:00
Echo_error "Could not find packages in cache/packages.bootstrap."
2010-09-07 13:11:20 +00:00
Echo_error "You selected values of LB_CACHE, LB_CACHE_PACKAGES, LB_CACHE_STAGES and LB_DEBIAN_INSTALLER which will result in 'bootstrap' packages not being cached - these are required when integrating the Debian Installer."
2008-08-10 22:02:01 +00:00
exit 1
fi
2008-03-22 00:24:32 -01:00
fi
2007-09-23 08:04:52 +00:00
2008-03-22 00:24:32 -01:00
# Including local debs
2014-12-10 05:39:58 -01:00
if Find_files config/packages.binary/*_"${LB_ARCHITECTURES}".deb || Find_files config/packages/*_"${LB_ARCHITECTURES}".deb
2008-03-22 00:24:32 -01:00
then
2014-12-10 05:39:58 -01:00
for FILE in config/packages.binary/*_"${LB_ARCHITECTURES}".deb config/packages/*_"${LB_ARCHITECTURES}".deb
2008-03-22 00:24:32 -01:00
do
2011-09-07 15:33:53 +00:00
if [ -e "${FILE}" ]
then
2012-04-26 18:29:37 +00:00
Install_file "${FILE}" "binary/pool"
2011-09-07 15:33:53 +00:00
fi
2008-03-22 00:24:32 -01:00
done
fi
2008-01-15 01:41:10 -01:00
2011-09-14 19:44:04 +00:00
if Find_files config/packages.binary/*_all.deb || Find_files config/packages/*_all.deb
2008-03-22 00:24:32 -01:00
then
2011-09-07 15:33:53 +00:00
for FILE in config/packages.binary/*_all.deb config/packages/*_all.deb
2008-03-22 00:24:32 -01:00
do
2011-09-07 15:33:53 +00:00
if [ -e "${FILE}" ]
then
2012-04-26 18:29:37 +00:00
Install_file "${FILE}" "binary/pool"
2011-09-07 15:33:53 +00:00
fi
2008-03-22 00:24:32 -01:00
done
fi
2007-09-23 08:05:13 +00:00
2008-03-22 00:24:32 -01:00
# Generating deb indices
2012-04-26 19:43:57 +00:00
for _ARCHIVE_AREA in $(cd binary/pool && ls)
do
2014-12-10 05:39:58 -01:00
mkdir -p binary/dists/${LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION}/${_ARCHIVE_AREA}/binary-${LB_ARCHITECTURES}
2007-09-23 08:04:52 +00:00
2012-04-26 19:43:57 +00:00
mv binary chroot/root
2014-12-10 05:39:58 -01:00
echo "cd /root/binary && apt-ftparchive packages pool/${_ARCHIVE_AREA} > dists/${LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION}/${_ARCHIVE_AREA}/binary-${LB_ARCHITECTURES}/Packages" > chroot/binary.sh
2012-04-26 19:43:57 +00:00
Chroot chroot "sh binary.sh"
rm -f chroot/binary.sh
mv chroot/root/binary ./
2009-01-26 11:59:24 -01:00
2014-12-10 05:39:58 -01:00
gzip -9 -c binary/dists/${LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION}/${_ARCHIVE_AREA}/binary-${LB_ARCHITECTURES}/Packages > binary/dists/${LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION}/${_ARCHIVE_AREA}/binary-${LB_ARCHITECTURES}/Packages.gz
2007-09-23 08:05:12 +00:00
2012-04-26 19:43:57 +00:00
# Fetching release
2014-12-10 05:39:58 -01:00
Download_file binary/dists/${LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION}/${_ARCHIVE_AREA}/binary-${LB_ARCHITECTURES}/Release "${LB_PARENT_MIRROR_CHROOT}"/dists/"${LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION}"/${_ARCHIVE_AREA}/binary-"${LB_ARCHITECTURES}"/Release
2012-04-26 19:43:57 +00:00
done
2007-09-23 08:04:52 +00:00
2012-05-31 09:37:22 +00:00
# Symlink firmware packages to /firmware
if [ -n "${DI_FIRMWARE_PACKAGES}" ]
then
mkdir -p binary/firmware
cd binary/firmware
for _PACKAGE in ${DI_FIRMWARE_PACKAGES}
do
for _FILE in $(find ../pool -name "${_PACKAGE}_*.deb")
do
2013-01-02 08:22:20 -01:00
ln -sf ${_FILE} ./
2012-05-31 09:37:22 +00:00
done
done
cd "${OLDPWD}"
fi
2011-02-14 13:49:18 -01:00
# Udeb handling
2019-12-19 17:07:59 -01:00
mkdir -p binary.udeb/pool-udeb/main
2008-03-22 00:24:32 -01:00
cd binary.udeb
2007-09-23 08:05:12 +00:00
2008-03-22 00:24:32 -01:00
# Downloading udeb indices
2014-12-10 05:39:58 -01:00
Download_file Packages.gz "${LB_PARENT_MIRROR_CHROOT}"/dists/"${LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION}"/main/debian-installer/binary-"${LB_ARCHITECTURES}"/Packages.gz
2008-03-22 00:24:32 -01:00
gunzip -c Packages.gz > Packages
2007-09-23 08:05:12 +00:00
2011-02-14 13:49:18 -01:00
if [ "${LB_DERIVATIVE}" = "true" ]
then
2014-12-10 05:39:58 -01:00
Download_file Packages.derivative.gz "${LB_MIRROR_CHROOT}"/dists/"${LB_DEBIAN_INSTALLER_DISTRIBUTION}"/main/debian-installer/binary-"${LB_ARCHITECTURES}"/Packages.gz
2011-02-14 13:49:18 -01:00
gunzip -c Packages.derivative.gz > Packages.derivative
fi
2020-02-13 03:43:46 -01:00
UDEBS="$(awk '/Filename: / { print $2 }' Packages)"
2020-02-13 03:55:14 -01:00
UDEBS_DERIVED=""
2020-02-13 03:43:46 -01:00
2020-02-20 07:37:49 -01:00
if [ "${LB_DERIVATIVE}" = "true" ]
2011-02-14 13:49:18 -01:00
then
2020-02-13 03:55:14 -01:00
UDEBS_DERIVED="$(awk '/Filename: / { print $2 }' Packages.derivative)"
2020-02-13 03:43:46 -01:00
# Filter parent packages to exclude those replaced by derivative
# We need to compare package names from lists of paths and filenames that include versions
_UDEBS_FILTERED=""
_UDEBS_DERIVED_NAMES=""
2020-02-13 03:55:14 -01:00
for _UDEB in ${UDEBS_DERIVED}
2020-02-13 03:43:46 -01:00
do
_UDEBS_DERIVED_NAMES="${_UDEBS_DERIVED_NAMES} $(basename ${_UDEB} | awk -F_ '{ print $1 }')"
done
for _UDEB in ${UDEBS}
do
if ! In_list "$(basename ${_UDEB} | awk -F_ '{ print $1 }')" "${_UDEBS_DERIVED_NAMES}"
then
_UDEBS_FILTERED="${_UDEBS_FILTERED} ${_UDEB}"
fi
done
2020-02-13 03:55:14 -01:00
UDEBS="${_UDEBS_FILTERED}"
2020-02-13 03:43:46 -01:00
_UDEBS_FILTERED=""
2020-02-13 03:55:14 -01:00
_UDEBS_DERIVED_NAMES=""
2020-02-13 03:43:46 -01:00
fi
2011-02-15 09:02:12 -01:00
2020-02-12 17:48:39 -01:00
# Downloading udeb packages
2012-02-04 13:54:37 -01:00
Echo_message "Downloading udebs..."
2008-03-22 00:24:32 -01:00
for UDEB in ${UDEBS}
do
2020-02-13 02:26:53 -01:00
_UDEB_FILENAME="$(basename ${UDEB})"
2020-02-13 03:43:46 -01:00
# Copy from cache if available, otherwise download
if [ -f ../cache/packages.installer_debian-installer.udeb/"${_UDEB_FILENAME}" ]
2008-03-22 00:24:32 -01:00
then
2020-02-13 03:43:46 -01:00
cp ../cache/packages.installer_debian-installer.udeb/"${_UDEB_FILENAME}" ./
else
2020-02-13 03:55:14 -01:00
wget ${WGET_OPTIONS} "${LB_PARENT_MIRROR_CHROOT}/${UDEB}"
2008-03-22 00:24:32 -01:00
fi
done
2020-02-13 03:55:14 -01:00
if [ "${LB_DERIVATIVE}" = "true" ]
then
for UDEB in ${UDEBS_DERIVED}
do
_UDEB_FILENAME="$(basename ${UDEB})"
# Copy from cache if available, otherwise download
if [ -f ../cache/packages.installer_debian-installer.udeb/"${_UDEB_FILENAME}" ]
then
cp ../cache/packages.installer_debian-installer.udeb/"${_UDEB_FILENAME}" ./
else
wget ${WGET_OPTIONS} "${LB_MIRROR_CHROOT}/${UDEB}"
fi
done
fi
2008-03-22 00:24:32 -01:00
# Caching udebs
2013-08-07 16:13:37 +00:00
rm -rf ../cache/packages.installer_debian-installer.udeb
mkdir -p ../cache/packages.installer_debian-installer.udeb
cp *.udeb ../cache/packages.installer_debian-installer.udeb
2008-03-22 00:24:32 -01:00
# Including local udebs
2014-12-10 05:39:58 -01:00
if Find_files ../config/packages.binary/*_"${LB_ARCHITECTURES}".udeb || Find_files ../config/packages/*_"${LB_ARCHITECTURES}".udeb
2007-09-23 08:05:13 +00:00
then
2014-12-10 05:39:58 -01:00
for FILE in ../config/packages.binary/*_"${LB_ARCHITECTURES}".udeb ../config/packages/*_"${LB_ARCHITECTURES}".udeb
2008-03-22 00:24:32 -01:00
do
2011-09-07 15:33:53 +00:00
if [ -e "${FILE}" ]
then
2019-12-19 17:07:59 -01:00
Install_file "${FILE}" "pool-udeb"
2008-03-22 00:24:32 -01:00
2011-09-07 15:33:53 +00:00
# Prefer local udebs over downloaded udebs
rm -f "$(basename ${FILE} | awk -F_ '{ print $1 }')"_*.udeb
fi
2008-03-22 00:24:32 -01:00
done
2007-09-23 08:05:13 +00:00
fi
2008-04-17 08:42:34 +00:00
2011-09-07 15:33:53 +00:00
if Find_files ../config/packages.binary/*_all.udeb || Find_files ../config/packages/*_all.udeb
2008-03-22 00:24:32 -01:00
then
2011-09-07 15:33:53 +00:00
for FILE in ../config/packages.binary/*_all.udeb ../config/packages/*_all.udeb
2008-03-22 00:24:32 -01:00
do
2011-09-07 15:33:53 +00:00
if [ -e "${FILE}" ]
then
2019-12-19 17:07:59 -01:00
Install_file "${FILE}" "pool-udeb"
2007-09-23 08:05:12 +00:00
2011-09-07 15:33:53 +00:00
# Prefer local udebs over downloaded udebs
rm -f "$(basename ${FILE} | awk -F_ '{ print $1 }')"_*.udeb
fi
2008-03-22 00:24:32 -01:00
done
fi
2007-09-23 08:05:13 +00:00
2008-03-22 00:24:32 -01:00
# Excluding udebs
2012-07-19 17:37:26 +00:00
for LOCATION in "${LIVE_BUILD}/data/debian-cd" /usr/share/live/build/data/debian-cd
do
if [ -e "${LOCATION}" ]
then
grep -v "^#" "${LOCATION}/${LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION}/udeb_exclude" > exclude || true
2020-02-10 14:48:49 -01:00
grep -v "^#" "${LOCATION}/${LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION}/exclude-udebs" >> exclude || true
grep -v "^#" "${LOCATION}/${LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION}/exclude-udebs-${LB_ARCHITECTURES}" >> exclude || true
2012-07-19 17:37:26 +00:00
continue
fi
done
2007-09-23 08:05:12 +00:00
2008-03-22 00:24:32 -01:00
# Local exclude file
2012-10-22 18:30:41 +00:00
if [ -e ../config/debian-installer/udeb_exclude ]
2008-03-22 00:24:32 -01:00
then
2012-10-22 18:30:41 +00:00
cat ../config/debian-installer/udeb_exclude >> exclude
2008-03-22 00:24:32 -01:00
fi
2007-09-23 08:05:12 +00:00
2009-06-30 14:45:36 +00:00
# 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
2020-02-12 17:48:39 -01:00
# Remove all udebs to be excluded from inclusion
2008-08-17 06:06:13 +00:00
while read EXCLUDE
2008-03-22 00:24:32 -01:00
do
2010-09-07 13:11:20 +00:00
if [ "${LB_DEBIAN_INSTALLER}" = "live" ] && [ "${EXCLUDE}" = "live-installer" ]
2008-06-13 14:52:16 +00:00
then
continue
fi
2008-08-17 06:06:13 +00:00
rm -f ${EXCLUDE}_*.udeb
done < exclude
2007-09-23 08:05:12 +00:00
2020-02-12 17:48:39 -01:00
# Sort udebs into alphabetised pool structure
2020-02-13 03:55:14 -01:00
for UDEB in "${UDEBS} ${UDEBS_DERIVED}"
2008-03-22 00:24:32 -01:00
do
2020-02-13 03:43:46 -01:00
_UDEB_FILENAME="$(basename ${UDEB})"
Install_file "${_UDEB_FILENAME}" "pool-udeb"
rm "${_UDEB_FILENAME}"
2008-03-22 00:24:32 -01:00
done
2007-09-23 12:05:11 +00:00
2008-03-22 00:24:32 -01:00
# Creating udeb indices
2014-12-10 05:39:58 -01:00
mkdir -p dists/"${LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION}"/main/debian-installer/binary-"${LB_ARCHITECTURES}"
2020-02-12 17:48:39 -01:00
2009-01-26 11:59:24 -01:00
cd "${OLDPWD}"
mv binary.udeb chroot/root
2019-12-19 17:07:59 -01:00
echo "cd /root/binary.udeb && apt-ftparchive packages pool-udeb/main > dists/${LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION}/main/debian-installer/binary-${LB_ARCHITECTURES}/Packages" > chroot/binary.sh
2009-01-26 11:59:24 -01:00
Chroot chroot "sh binary.sh"
rm -f chroot/binary.sh
mv chroot/root/binary.udeb ./
cd binary.udeb
2014-12-10 05:39:58 -01:00
gzip -9 -c dists/${LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION}/main/debian-installer/binary-${LB_ARCHITECTURES}/Packages > dists/${LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION}/main/debian-installer/binary-${LB_ARCHITECTURES}/Packages.gz
2008-03-22 00:24:32 -01:00
rm -f Packages* exclude
find . | cpio -dmpu "${OLDPWD}"/binary
cd "${OLDPWD}"
rm -rf binary.udeb
rm -rf binary.deb
# Generating release file
2009-01-26 11:59:24 -01:00
mv binary chroot/root
2015-08-10 19:31:17 +00:00
if [ -e chroot/etc/os-release ]
then
_VERSION="$(. chroot/etc/os-release && echo ${VERSION_ID})"
fi
2015-06-24 16:15:22 +00:00
if [ -n "${_VERSION}" ]; then
_LB_APT_VERSION_OPT='-o APT::FTPArchive::Release::Version="'"${_VERSION}"'"'
fi
2010-09-26 20:36:55 +00:00
2019-12-19 16:18:44 -01:00
case "${LB_PARENT_DISTRIBUTION_BINARY}" in
2010-09-26 21:00:52 +00:00
sid)
_SUITE="unstable"
;;
*)
2019-12-19 16:18:44 -01:00
_SUITE="${LB_PARENT_DISTRIBUTION_BINARY}"
2010-09-26 21:00:52 +00:00
;;
esac
2009-01-26 11:59:24 -01:00
cat > chroot/binary.sh << EOF
2020-02-22 13:36:58 -01:00
#!/bin/sh
2009-01-26 11:59:24 -01:00
cd /root/binary && apt-ftparchive \
-o APT::FTPArchive::Release::Origin="Debian" \
-o APT::FTPArchive::Release::Label="Debian" \
2010-09-26 21:00:52 +00:00
-o APT::FTPArchive::Release::Suite="${_SUITE}" \
2015-06-24 16:15:22 +00:00
${_LB_APT_VERSION_OPT} \
2019-12-19 16:18:44 -01:00
-o APT::FTPArchive::Release::Codename="${LB_PARENT_DISTRIBUTION_BINARY}" \
2009-01-26 11:59:24 -01:00
-o APT::FTPArchive::Release::Date="$(date -R)" \
2014-12-10 05:39:58 -01:00
-o APT::FTPArchive::Release::Architectures="${LB_ARCHITECTURES}" \
2014-12-10 07:19:07 -01:00
-o APT::FTPArchive::Release::Components="${LB_PARENT_ARCHIVE_AREAS}" \
2009-01-26 11:59:24 -01:00
-o APT::FTPArchive::Release::Description="Last updated: $(date -R)" \
2011-02-14 10:29:25 -01:00
release dists/${LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION} > dists/${LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION}/Release
2009-01-26 11:59:24 -01:00
EOF
Chroot chroot "sh binary.sh"
rm -f chroot/binary.sh
mv chroot/root/binary ./
2008-03-22 00:24:32 -01:00
2019-12-19 16:18:44 -01:00
DISTRIBUTIONS="stable testing unstable"
2010-11-13 13:45:36 -01:00
2019-12-19 16:18:44 -01:00
if [ "${LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION}" != "${LB_PARENT_DISTRIBUTION_BINARY}" ]
2010-11-13 13:45:36 -01:00
then
2019-12-19 16:18:44 -01:00
DISTRIBUTIONS="${DISTRIBUTIONS} ${LB_PARENT_DISTRIBUTION_BINARY}"
2010-11-13 13:45:36 -01:00
fi
2012-12-19 08:52:13 -01:00
case "${LIVE_IMAGE_TYPE}" in
2011-09-13 07:10:28 +00:00
hdd)
2010-11-13 13:45:36 -01:00
case "${LB_BINARY_FILESYSTEM}" in
2012-07-18 20:27:30 +00:00
fat*|ntfs)
2010-11-13 13:45:36 -01:00
# Creating dist directories
for DISTRIBUTION in ${DISTRIBUTIONS}
do
2011-02-14 10:29:25 -01:00
cp -a binary/dists/${LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION} binary/dists/${DISTRIBUTION}
2010-11-13 13:45:36 -01:00
done
;;
esac
2010-02-18 15:12:59 -01:00
;;
*)
2010-11-02 09:41:51 -01:00
# Creating dist symlinks
2010-11-13 13:45:36 -01:00
for DISTRIBUTION in ${DISTRIBUTIONS}
2010-11-02 09:41:51 -01:00
do
2011-02-14 10:29:25 -01:00
ln -s ${LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION} binary/dists/${DISTRIBUTION}
2010-11-02 09:41:51 -01:00
done
2010-02-18 15:12:59 -01:00
ln -s . binary/debian
;;
esac
2008-02-29 11:27:56 -01:00
fi
2008-04-17 08:42:34 +00:00
Repack_initrd()
{
2008-03-22 17:13:03 -01:00
local TARGET_INITRD
2008-12-02 14:56:02 -01:00
local INCLUDE_PATH
2008-03-22 17:13:03 -01:00
TARGET_INITRD="${1}"
2008-12-02 14:56:02 -01:00
INCLUDE_PATH="${2}"
2008-03-22 17:13:03 -01:00
REPACK_TMPDIR="unpacked-initrd"
2008-04-17 08:42:34 +00:00
2008-12-02 14:56:02 -01:00
if [ -d "${INCLUDE_PATH}" ]
then
INCLUDE_PATH=$(readlink -f ${INCLUDE_PATH})
fi
2008-03-22 17:13:03 -01:00
# cpio does not have a "extract to directory", so we must change directory
mkdir -p ${REPACK_TMPDIR}
cd ${REPACK_TMPDIR}
gzip -d < ../${TARGET_INITRD} | cpio -i --make-directories --no-absolute-filenames
2008-12-02 14:56:02 -01:00
if [ ! -d "${INCLUDE_PATH}" ]
then
# Invoked the old way, just copy the preseeds
2013-06-20 09:21:32 +00:00
for _FILE in ../config/preseed/*.cfg ../config/preseed/*.cfg.installer
do
if [ -e "${_FILE}" ]
then
cp "${_FILE}" .
fi
done
2008-12-02 14:56:02 -01:00
else
# New way, include target directory content in the initrd
REPACK_TMPDIR_ABS="${PWD}"
cd "${INCLUDE_PATH}"
find -print0 | cpio -pumd0 --no-preserve-owner "${REPACK_TMPDIR_ABS}/"
cd "${OLDPWD}"
fi
find -print0 | cpio -H newc -o0 | gzip -9 > ../${TARGET_INITRD}
2008-03-22 17:13:03 -01:00
cd ..
rm -rf ${REPACK_TMPDIR}
}
# Preseed d-i by repacking the initrd in certain situations
2013-06-20 09:21:32 +00:00
if [ "${DI_IMAGE_TYPE}" = "netboot" ] && ( ls config/preseed/*.cfg > /dev/null 2>&1 || ls config/preseed/*.cfg.installer > /dev/null 2>&1 )
2008-03-22 17:13:03 -01:00
then
2008-04-17 08:42:34 +00:00
Repack_initrd "${DESTDIR}"/"${INITRD_DI}"
2008-03-22 17:13:03 -01:00
if [ -e "${DESTDIR}"/"${INITRD_GI}" ]
then
2008-04-17 08:42:34 +00:00
Repack_initrd "${DESTDIR}"/"${INITRD_GI}"
2008-03-22 17:13:03 -01:00
fi
fi
2013-06-24 12:27:48 +00:00
# Include content of config/includes.installer if exists and not empty
if [ -d config/includes.installer ] && [ -n "$(ls -A config/includes.installer)" ]
2008-12-02 14:56:02 -01:00
then
2013-06-24 12:27:48 +00:00
Repack_initrd "${DESTDIR}"/"${INITRD_DI}" config/includes.installer
2008-12-02 14:56:02 -01:00
if [ -e "${DESTDIR}"/"${INITRD_GI}" ]
then
2013-06-24 12:27:48 +00:00
Repack_initrd "${DESTDIR}"/"${INITRD_GI}" config/includes.installer
2008-12-02 14:56:02 -01:00
fi
fi
2013-03-27 10:31:25 -01:00
case "${LB_MODE}" in
progress-linux)
mv binary/install binary/installer
rm -f binary/debian
for _DIRECTORY in dists pool project firmware
do
2013-08-07 18:06:26 +00:00
if [ -e "binary/${_DIRECTORY}" ]
2013-03-27 10:31:25 -01:00
then
mv binary/"${_DIRECTORY}" binary/installer
fi
done
;;
esac
2008-04-16 05:19:10 +00:00
# Saving cache
2015-01-06 02:46:37 -01:00
Save_package_cache binary
2008-04-16 05:19:10 +00:00
# Removing depends
Remove_package
2007-09-23 08:04:52 +00:00
# Creating stage file
2013-08-07 16:13:37 +00:00
Create_stagefile .build/installer_debian-installer