Skip to content

Commit 21262d4

Browse files
author
Dimitri Savineau
committed
base.install: Fix apt components
* Add components parameter in debootstrap for debian/ubuntu. * Add basic components in all sources (release, updates and security): - Debian : main contrib non-free - Ubuntu : main universe multiverse * Merge all these informations in /etc/apt/sources.list instead of split them in /etc/apt/sources.list.d/ Signed-off-by: Dimitri Savineau <[email protected]>
1 parent d360281 commit 21262d4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

build/base.install

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,17 +134,19 @@ bootstrap() {
134134
case "$dist" in
135135
$supported_debian_dists)
136136
scripts="sid"
137+
components="main,contrib,non-free"
137138
;;
138139
$supported_ubuntu_dists)
139140
scripts="gutsy"
141+
components="main,universe,multiverse"
140142
;;
141143
esac
142144
if [ ! -e /usr/share/debootstrap/scripts/${dist} ]; then
143145
cd /usr/share/debootstrap/scripts
144146
ln -s $scripts $dist
145147
cd -
146148
fi
147-
debootstrap --arch ${ARCH:=amd64} --variant=minbase $dist "$target" $repository
149+
debootstrap --arch ${ARCH:=amd64} --components $components --variant=minbase $dist "$target" $repository
148150
# workaround no signature downloaded
149151
rm -f "$target"/var/lib/apt/lists/*[es]
150152
if [ -n "${HTTP_PROXY}" ]; then
@@ -207,15 +209,13 @@ install_base_packages() {
207209
case $dist in
208210
$supported_ubuntu_dists)
209211
packages="$cross_distro_packages grub2 iputils-ping linux-firmware linux-firmware-nonfree linux-headers-generic-lts-trusty linux-image-generic-lts-trusty $deb_packages linux-crashdump"
210-
echo "deb $repository $dist main universe multiverse" > ${target}/etc/apt/sources.list
211212
echo "deb $repository $dist-updates main universe multiverse" >> ${target}/etc/apt/sources.list
212213
echo "deb http://security.ubuntu.com/ubuntu $dist-security main universe multiverse" >> ${target}/etc/apt/sources.list
213214
;;
214215
$supported_debian_dists)
215216
packages="$cross_distro_packages acpi-support-base firmware-linux firmware-netxen firmware-qlogic firmware-realtek firmware-bnx2 firmware-bnx2x htop inetutils-ping libui-dialog-perl linux-image-amd64 $deb_packages"
216-
echo "deb $repository $dist non-free" > ${target}/etc/apt/sources.list.d/nonfree.list
217-
echo "deb http://security.debian.org/ $dist/updates main" > ${target}/etc/apt/sources.list.d/updates.list
218-
echo "deb $repository $dist-updates main" >> ${target}/etc/apt/sources.list.d/updates.list
217+
echo "deb $repository $dist-updates main contrib non-free" >> ${target}/etc/apt/sources.list
218+
echo "deb http://security.debian.org/ $dist/updates main contrib non-free" >> ${target}/etc/apt/sources.list
219219
;;
220220
$supported_centos_dists|$supported_redhat_dists)
221221
if [ "$CODENAME_MAJOR" = '6' ]; then

0 commit comments

Comments
 (0)