Skip to content

Commit 2979c8a

Browse files
committed
armbian fix
1 parent 5d1ab58 commit 2979c8a

3 files changed

Lines changed: 13 additions & 6 deletions

File tree

src/variants/armbian/config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ BASE_ZIP_IMG=`ls -t ${DIST_PATH}/image-variants/*.{zip,7z} | head -n 1`
33
BASE_APT_CACHE=no
44
OCTOPI_INCLUDE_WIRINGPI=no
55
# The root partiton of the image filesystem, 2 for raspbian, 1 for armbian
6-
BASE_ROOT_PARTITION=1
7-
BASE_IMAGE_RESIZEROOT=500
6+
BASE_ROOT_PARTITION=2
7+
BASE_IMAGE_ENLARGEROOT=500
88
BASE_IMAGE_RASPBIAN=no
99
BASE_IMAGE_ENLARGEROOT=1000

src/variants/armbian/filesystem/root/etc/network/interfaces

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ source-directory /etc/network/interfaces.d
99
auto lo
1010
iface lo inet loopback
1111

12-
iface eth0 inet manual
12+
iface eth0 inet dhcp
1313

1414
allow-hotplug wlan0
15-
iface wlan0 inet manual
15+
iface wlan0 inet dhcp
1616
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
1717

1818
allow-hotplug wlan1
19-
iface wlan1 inet manual
19+
iface wlan1 inet dhcp
2020
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
2121

src/variants/armbian/pre_chroot_script

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,14 @@ if_group_exists_run(){
2828
fi
2929
}
3030

31-
31+
# disable armbian based network config
32+
# https://github.com/armbian/build/blob/master/packages/bsp/common/usr/lib/armbian/armbian-firstrun-config
33+
systemctl disable armbian-firstrun-config
34+
rm /boot/armbian_first_run.txt.template
35+
# disable NetworkManager use /etc/network instead
36+
systemctl disable NetworkManager
37+
# disable first-login add user https://github.com/armbian/build/blob/master/packages/bsp/common/etc/profile.d/armbian-check-first-login.sh
38+
rm /etc/profile.d/armbian-check-first-login.sh
3239

3340
password=$(perl -e 'printf("%s\n", crypt($ARGV[0], "password"))' "raspberry")
3441
useradd -m -p "${password}" -s /bin/bash pi

0 commit comments

Comments
 (0)