diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index aae59a9..46a628c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,10 +21,9 @@ jobs: - name: raspi script: ./install_pi.sh base_image: https://downloads.raspberrypi.com/raspios_lite_arm64/images/raspios_lite_arm64-2023-12-11/2023-12-11-raspios-bookworm-arm64-lite.img.xz - # Orange pi default user seems bjork? also I can't find the where this file ends up in the image? https://github.com/Joshua-Riek/ubuntu-rockchip/blob/0710bd81f5619c25ccddb4e9d69ddbe73827f850/overlay/boot/firmware/user-data#L4 - # - name: opi5 - # script: ./install_opi5.sh - # base_image: https://github.com/Joshua-Riek/ubuntu-rockchip/releases/download/v1.30/ubuntu-22.04.3-preinstalled-server-arm64-orangepi-5.img.xz + - name: opi5 + script: ./install_opi5.sh + base_image: https://github.com/Joshua-Riek/ubuntu-rockchip/releases/download/v1.30/ubuntu-22.04.3-preinstalled-server-arm64-orangepi-5.img.xz name: "Build for ${{ matrix.name }}" diff --git a/install_opi5.sh b/install_opi5.sh index face130..f676a44 100755 --- a/install_opi5.sh +++ b/install_opi5.sh @@ -1,21 +1,38 @@ -find / -find / -name user-data +# Create pi/raspberry login +if id "$1" >/dev/null 2>&1; then + echo 'user found' +else + echo "creating pi user" + useradd pi -b /home + usermod -a -G sudo pi + mkdir /home/pi + chown -R pi /home/pi +fi +echo "pi:raspberry" | chpasswd apt-get update -apt-get upgrade -y - -cd /tmp wget https://git.io/JJrEP -O install.sh chmod +x install.sh sed -i 's/# AllowedCPUs=4-7/AllowedCPUs=4-7/g' install.sh ./install.sh +rm install.sh + +sudo apt-get update +apt-get install -y network-manager net-tools libatomic1 +apt-mark manual netplan.io +apt-mark manual libatomic1 + +cat > /etc/netplan/00-default-nm-renderer.yaml <