From e02b3a1b7b3bfc7581c1939d46c346c985e9090d 2018-11-19 16:57:11 From: Unknown Date: 2018-11-19 16:57:11 Subject: [PATCH] always include locales - so many errors connected to locals in the past and a check that always hits => just make it default - UBoot 64bit wanted bc to compile --- diff --git a/rpi23-gen-image.sh b/rpi23-gen-image.sh index 7bb82c1..4fd827a 100755 --- a/rpi23-gen-image.sh +++ b/rpi23-gen-image.sh @@ -247,7 +247,7 @@ CHROOT_SCRIPTS=${CHROOT_SCRIPTS:=""} # Packages required in the chroot build environment APT_INCLUDES=${APT_INCLUDES:=""} -APT_INCLUDES="${APT_INCLUDES},apt-transport-https,apt-utils,ca-certificates,debian-archive-keyring,dialog,sudo,systemd,sysvinit-utils" +APT_INCLUDES="${APT_INCLUDES},apt-transport-https,apt-utils,ca-certificates,debian-archive-keyring,dialog,sudo,systemd,sysvinit-utils,locales,keyboard-configuration,console-setup" #Packages to exclude from chroot build environment APT_EXCLUDES=${APT_EXCLUDES:=""} @@ -266,6 +266,10 @@ if [ "$ENABLE_SYSVINIT" = false ] ; then APT_EXCLUDES="--exclude=${APT_EXCLUDES},init,systemd-sysv" fi +#Check if apt-cacher-ng has its default port open on and set APT_PROXY +if [ -n "$(lsof -i :3142)" ] ; then +HTTP_PROXY=http://127.0.0.1:3142/ + # Set Raspberry Pi model specific configuration if [ "$RPI_MODEL" = 0 ] ; then DTB_FILE=${RPI0_DTB_FILE} @@ -358,7 +362,7 @@ fi # Add device-tree-compiler required for building the U-Boot bootloader if [ "$ENABLE_UBOOT" = true ] ; then - APT_INCLUDES="${APT_INCLUDES},device-tree-compiler,bison,flex" + APT_INCLUDES="${APT_INCLUDES},device-tree-compiler,bison,flex,bc" fi # Check if root SSH (v2) public key file exists @@ -470,11 +474,6 @@ if [ "$ENABLE_MINBASE" = true ] ; then APT_INCLUDES="${APT_INCLUDES},vim-tiny,netbase,net-tools,ifupdown" fi -# Add required locales packages -if [ "$DEFLOCAL" != "en_US.UTF-8" ] || ([ -n XKB_MODEL ] || [ -n XKB_LAYOUT ] || [ -n XKB_VARIANT ] || [ -n XKB_OPTIONS ]); then - APT_INCLUDES="${APT_INCLUDES},locales,keyboard-configuration,console-setup" -fi - # Add parted package, required to get partprobe utility if [ "$EXPANDROOT" = true ] ; then APT_INCLUDES="${APT_INCLUDES},parted"