|
|
|
@ -37,45 +37,7 @@ cp -af /usr/share/livecd-rootfs/live-build/snap-seed-parse.py config/snap-seed-p
|
|
|
|
|
|
|
|
|
|
mkdir -p config/package-lists
|
|
|
|
|
|
|
|
|
|
add_task ()
|
|
|
|
|
{
|
|
|
|
|
local pass="$1"
|
|
|
|
|
shift
|
|
|
|
|
local task
|
|
|
|
|
|
|
|
|
|
# The removal of direct task installation support from live-build
|
|
|
|
|
# poses some problems. If the chroot has multiarch configured - for
|
|
|
|
|
# example, if we're building for amd64 - then dumpavail will show
|
|
|
|
|
# foreign-architecture packages which will have their own Task
|
|
|
|
|
# lines, but which we don't want to install. (Compare
|
|
|
|
|
# PackageContainerInterface::FromTask in apt, which restricts task
|
|
|
|
|
# expansion to the native architecture.) We therefore restrict our
|
|
|
|
|
# search to stanzas with Architecture: $ARCH or all.
|
|
|
|
|
#
|
|
|
|
|
# However, even this may not be accurate enough. At the moment I
|
|
|
|
|
# have no idea what happens if an Architecture: all package has
|
|
|
|
|
# different Task fields on different architectures. This is
|
|
|
|
|
# probably a lurking timebomb that we need to fix. In the meantime,
|
|
|
|
|
# the Architecture restriction at least saves us from abject
|
|
|
|
|
# failure.
|
|
|
|
|
|
|
|
|
|
for task; do
|
|
|
|
|
# We need a ridiculous number of backslashes to protect
|
|
|
|
|
# parentheses from eval.
|
|
|
|
|
echo "!chroot chroot apt-cache dumpavail | grep-dctrl -nsPackage \\\\\\( -XFArchitecture $ARCH -o -XFArchitecture all \\\\\\) -a -wFTask $task" >> "config/package-lists/livecd-rootfs.list.chroot_$pass"
|
|
|
|
|
done
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
add_package ()
|
|
|
|
|
{
|
|
|
|
|
local pass="$1"
|
|
|
|
|
shift
|
|
|
|
|
local pkg
|
|
|
|
|
|
|
|
|
|
for pkg; do
|
|
|
|
|
echo "$pkg" >> "config/package-lists/livecd-rootfs.list.chroot_$pass"
|
|
|
|
|
done
|
|
|
|
|
}
|
|
|
|
|
. config/functions
|
|
|
|
|
|
|
|
|
|
OPTS=
|
|
|
|
|
COMPONENTS=
|
|
|
|
|