live-build/functions
Adrian Gibanel Lopez 80aa5ab611 Fixed foreign architecture package support to linux kernel flavours
Before Stretch there was an special amd64 kernel in the i386 arch repo.
So if you wanted to install an amd64 kernel alongside an i386 system
you did not need an additional arch repo.

Debian added multiarch support. That way you can install library packages
from multiple architectures on the same machine.

So there is no longer a need for having an amd64 kernel in i386 arch repo.
You can add an amd64 arch repo to an i386 arch system and fetch the amd64
kernel from the am64 arch repo.

live-build can be setup to use several linux kernel flavours in a single
image.

So in the days previous to this patch you could issue:
lb config --linux-flavours "486 amd64"
to use both 486 and amd64 kernel flavours.

Adding additional arch support to linux flavours poses two problems:

* Packages need to have its arch suffix (e.g. amd64:amd64).
If the suffix is not there apt-get insists on search amd64 kernel
package on i386 arch repo and, of course, fails to find it.

* The rest of the code which handles labels (bootloader config files)
or installed filenames (kernel images themselves) do not use the arch suffix.

This patch adds foreign architecture package support to
linux kernel flavours having taken those problems into account.

Practical example usage: i386 system and extra amd64 kernel.

First add amd64 foreign architecture in your i386 system
thanks to:

dpkg --add-architecture amd64
apt-get update

.

Finally enable amd64 kernel from amd64 arch alongside the
i386 system's 686 kernel thanks to:

lb config --architectures i386 --linux-flavours "686 amd64:amd64"
2019-03-14 23:06:31 +01:00
..
aliases.sh Don't truncate files outside the build chroot. 2015-04-26 20:20:24 +02:00
architectures.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
arguments.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
bootloaders.sh Fix permission on functions/bootloaders.sh 2016-11-28 23:15:38 +01:00
breakpoints.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
cache.sh Updating stat calls to also give the right result in container setups, thanks to Kristian Klausen <klausenbusk@hotmail.com> (Closes: #789300). 2015-08-10 21:45:00 +02:00
chroot.sh Export SOURCE_DATE_EPOCH when running chroot commands 2016-11-28 20:58:19 +01:00
chroot_bind_path.sh Making functions/chroot_bind_path.sh executable within the source tree (Closes: #777096). 2015-02-07 06:46:45 +01:00
color.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
common.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
conffile.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
configuration.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
cursor.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
defaults.sh Fixed foreign architecture package support to linux kernel flavours 2019-03-14 23:06:31 +01:00
echo.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
exit.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
help.sh Drop all references to live-systems.org and update copyright file 2017-08-29 14:12:33 +02:00
lockfile.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
losetup.sh Pass --partscan to losetup 2017-09-01 10:07:00 +02:00
man.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
packagelists.sh Fix behaviour of (undocumented) "#nif" conditional test 2016-11-28 20:58:19 +01:00
packages.sh Print an error and exit if a host package (dependency) is missing. 2018-04-05 16:24:36 +01:00
stagefile.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
usage.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
wrapper.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00