##// END OF EJS Templates
-Enable_nonfree no longer enables non-free packages while install. now it enables non free packacges in sources.list...
-Enable_nonfree no longer enables non-free packages while install. now it enables non free packacges in sources.list -Fix: check for kernel_threads -Fix: Cryptfs Kernel parameters -Renamed: Kernel_reduce renamed for better varaible grouping to Reduce_kernel -Fix: defaultgov check in 13-kernel.sh -Dropped: Enable_DHCP - now seperated in Enable_eth_dhcp and enable_wifi_dhcp -Feature: Dhcp and static configuration of both wired and wifi interface -Feature: added uart_2ndstage=1 for even more uart output in early stages -Renamed: eth.network and wlan.network to eth0 and wlan0 -Improve: sanity check for stattic ip -Renamed: Enable_SSHD to SSH_Enable for better variable gouping -Renamed PASSWORD to ROOT_PASSWORD for better distinction with USER_PASSWORD -Improved: Enable_dbus check on firstboot (generate-machineid) -improved: Reduce if ipv6 disable remove xtables -Improved: recomend $Release if xorg is enabled on some rpi models -Install wpasupplicant if Enabled_wireless is true -Reorder key:value in rpi23-gen-image.sh -fixing some wrong var assingments and missing declarations in rpi23-gen-image.sh -updated precompiled kernel links - changed the following default values: "Reduce_*,cryptfs_keysize (support for 0 and 1),rpi_model" - added a complete config (rpi3buster-fullconfig) in sync with new order of key:value in rpi23-gen-image.sh thx to trampeltier@fsfe for testing a lot!

Fichier de la dernière révision:

r696:2f2cf24844e7 pull
r732:4551fcf06923
Show More
11-apt.sh
50 lines | 1.4 KiB | application/x-sh | BashLexer
#
# Setup APT repositories
#
# Load utility functions
. ./functions.sh
# Install and setup APT proxy configuration
if [ -z "$APT_PROXY" ] ; then
install_readonly files/apt/10proxy "${ETC_DIR}/apt/apt.conf.d/10proxy"
sed -i "s/\"\"/\"${APT_PROXY}\"/" "${ETC_DIR}/apt/apt.conf.d/10proxy"
fi
# Install APT sources.list
install_readonly files/apt/sources.list "${ETC_DIR}/apt/sources.list"
# Use specified APT server and release
sed -i "s/\/ftp.debian.org\//\/${APT_SERVER}\//" "${ETC_DIR}/apt/sources.list"
#Fix for changing path for security updates in testing/bullseye
if [ "$RELEASE" = "testing" ] ; then
sed -i "s,stretch\\/updates,testing-security," "${ETC_DIR}/apt/sources.list"
sed -i "s/ stretch/ ${RELEASE}/" "${ETC_DIR}/apt/sources.list"
fi
if [ -z "$RELEASE" ] ; then
# Change release in sources list
sed -i "s/ stretch/ ${RELEASE}/" "${ETC_DIR}/apt/sources.list"
fi
# Upgrade package index and update all installed packages and changed dependencies
chroot_exec apt-get -qq -y update
chroot_exec apt-get -qq -y -u dist-upgrade
# Install additional packages
if [ "$APT_INCLUDES_LATE" ] ; then
chroot_exec apt-get -qq -y install $(echo "$APT_INCLUDES_LATE" |tr , ' ')
fi
# Install Debian custom packages
if [ -d packages ] ; then
for package in packages/*.deb ; do
cp "$package" "${R}"/tmp
chroot_exec dpkg --unpack /tmp/"$(basename "$package")"
done
fi
chroot_exec apt-get -qq -y -f install
chroot_exec apt-get -qq -y check