Configure backports and contrib repo before update

This commit is contained in:
Bob Mottram 2016-08-13 10:12:23 +01:00
parent 87f9e68933
commit e07c8eb2a5
No known key found for this signature in database
GPG Key ID: 0452CC7CEA982E38
2 changed files with 14 additions and 9 deletions

View File

@ -206,6 +206,7 @@ function mesh_install_ipfs_js {
return
fi
chroot ${rootdir} apt-get -y install nodejs
chroot ${rootdir} apt-get -y install npm
chroot ${rootdir} apt-get -y install libpam0g-dev fuse
@ -273,6 +274,7 @@ function install_ipfs_js {
return
fi
apt-get -y install nodejs
apt-get -y install npm
apt-get -y install libpam0g-dev fuse

View File

@ -116,6 +116,16 @@ MESH_SET_USERNAME=$"Welcome to the Freedombone mesh.\n\nThe first thing you will
# Whether to enable zeronet on the mesh
ENABLE_ZERONET=
function configure_backports {
echo "deb http://${DEBIAN_REPO}/debian/ ${DEBIAN_VERSION}-backports main" >> $rootdir/etc/apt/sources.list
}
function configure_contrib_repo {
if ! grep -q "contrib" $rootdir/etc/apt/sources.list; then
chroot "$rootdir" sed -i "s| main| main contrib|g" /etc/apt/sources.list
fi
}
enable_eatmydata_override() {
chroot $rootdir apt-get install --no-install-recommends -y eatmydata
if [ -x $rootdir/usr/bin/eatmydata ] && \
@ -530,11 +540,6 @@ initialise_mesh() {
chroot "$rootdir" sed -i "s| main| main non-free|g" /etc/apt/sources.list
fi
# enable contrib repo
if ! grep -q "contrib" $rootdir/etc/apt/sources.list; then
chroot "$rootdir" sed -i "s| main| main contrib|g" /etc/apt/sources.list
fi
chroot "$rootdir" apt-get update
# install proprietary wifi drivers
@ -692,10 +697,6 @@ function configure_user_interface {
DEBIAN_VERSION='jessie'
fi
# install backports
echo "deb http://${DEBIAN_REPO}/debian/ ${DEBIAN_VERSION}-backports main" >> $rootdir/etc/apt/sources.list
chroot "$rootdir" apt-get -y update
# desktop
chroot "$rootdir" apt-get -y install mate-desktop-environment
@ -837,6 +838,8 @@ set_apt_sources $BUILD_MIRROR
chroot "$rootdir" apt-get clean
chroot "$rootdir" rm -rf /var/lib/apt/lists/*
chroot "$rootdir" apt-get clean
configure_backports
configure_contrib_repo
chroot "$rootdir" apt-get update
cat > $rootdir/usr/sbin/policy-rc.d <<EOF