Bug#879147: debian-ports support when installing the kernel and extra packages
X-Debbugs-CC: "Helge Deller" <firstname.lastname@example.org>, "John Paul Adrian Glaubitz" <email@example.com>, "James Clarke" <firstname.lastname@example.org>
bootstrap-base installs a kernel and some extra packages as its last
steps ('install_kernel' and 'install_extra').
The patch below enables the use of the 'unreleased' distribution on
non released architectures during these steps. (A file 'port_architecture'
should be created previously by another package, e.g.
choose-mirror-bin. See #879130)
@@ -873,6 +873,11 @@
echo "deb $APTSOURCE $DISTRIBUTION $COMPONENTS" > $APT_SOURCES
+ if [ -e /usr/lib/choose-mirror/port_architecture ]; then
+ # Port architectures use both suites 'unstable' and 'unreleased'
+ echo "deb $APTSOURCE unreleased $COMPONENTS" >> $APT_SOURCES