Skip to content

Commit 462fbad

Browse files
committed
Make armbian variant work again #162
1 parent 7f5840e commit 462fbad

3 files changed

Lines changed: 4 additions & 8 deletions

File tree

src/modules/network/start_chroot_script

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ DIST_NETWORK_FILE=/"${BASE_BOOT_MOUNT_PATH}"/${DIST_NAME,,}-wpa-supplicant.txt
1919
# allow configuring multiple wifi networks via /boot/DIST_NAME-wpa-supplicant.txt
2020
mv /"${BASE_BOOT_MOUNT_PATH}"/custompios-wpa-supplicant.txt ${DIST_NETWORK_FILE}
2121

22-
if [ "${BASE_DISTRO}" == "ubuntu" ]; then
22+
if [ "${BASE_DISTRO}" == "ubuntu" ] || [ "${BASE_DISTRO}" == "armbian" ]; then
2323
echo "ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev" > /etc/wpa_supplicant/wpa_supplicant.conf
2424
echo "update_config=1" >> /etc/wpa_supplicant/wpa_supplicant.conf
2525
fi

src/variants/armbian/config

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
VARIANT_CONFIG_DIR=$(realpath -s $(dirname $(realpath -s $BASH_SOURCE))/../..)
2-
BASE_ZIP_IMG=`ls -t ${DIST_PATH}/image-variants/*.{zip,7z} | head -n 1`
2+
BASE_ZIP_IMG=`ls -t ${DIST_PATH}/image-variants/*.{zip,7z,xz} | head -n 1`
33
BASE_APT_CACHE=no
44
OCTOPI_INCLUDE_WIRINGPI=no
5+
export BASE_DISTRO=armbian
56
# The root partiton of the image filesystem, 2 for raspbian, 1 for armbian
67
BASE_ROOT_PARTITION=1
78
BASE_IMAGE_RESIZEROOT=500

src/variants/armbian/pre_chroot_script

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,10 @@ if [ -n "$BASE_APT_CACHE" ] && [ "$BASE_APT_CACHE" != "no" ]; then
5252
else
5353
apt-get clean
5454
fi
55-
apt-get update --allow-releaseinfo-change
55+
apt-get update || true
5656
apt-get -y --force-yes install avahi-daemon || true
57-
apt-get -y --force-yes install python python-distutils-extra || true
58-
apt-get -y --force-yes install -f
59-
wget https://bootstrap.pypa.io/get-pip.py -O - | python
6057
apt-get -y --force-yes install iptables
61-
pip install virtualenv --upgrade
6258

6359
mkdir -p /var/run/wpa_supplicant
6460

65-
apt-get remove -y python-pip python3-pip
6661

0 commit comments

Comments
 (0)