Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
script: "./tmp/build/install_rubikpi3.sh"
base_image: "https://people.canonical.com/~platform/images/qualcomm-iot/rubikpi3/ubuntu-server-24.04/x00/ubuntu-24.04-preinstalled-server-arm64+rubikpi3-20250912-127.yaml"

runs-on: ubuntu-24.04
runs-on: ubuntu-24.04-arm

name: "Build for RubikPi3"

Expand Down
8 changes: 2 additions & 6 deletions mount_rubikpi3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set -exv

# Install required packages
sudo apt-get update
sudo apt-get install -y qemu-user-static wget xz-utils
sudo apt-get install -y wget xz-utils
# If base_image ends with .yaml, treat it as a manifest and skip download
if [[ "$base_image" == *.yaml ]]; then

Expand Down Expand Up @@ -139,10 +139,6 @@ sudo rm -f rootfs/etc/resolv.conf
sudo cp /etc/resolv.conf rootfs/etc/resolv.conf
sudo cp /etc/hosts rootfs/etc/hosts

# Copy qemu static binaries for ARM emulation
sudo cp /usr/bin/qemu-arm-static rootfs/usr/bin/ || true
sudo cp /usr/bin/qemu-aarch64-static rootfs/usr/bin/ || true

# DEPRECATED: using bind mount instead
# Copy repository into chroot (excluding mounted directories and problematic files)
# sudo mkdir -p rootfs/tmp/build/
Expand All @@ -153,7 +149,7 @@ sudo mkdir -p rootfs/tmp/build/
sudo mount --bind "$(pwd)" rootfs/tmp/build/

echo "=== Checking for sudo in chroot and running script ==="
sudo chroot rootfs /usr/bin/qemu-aarch64-static /bin/bash -c "
sudo chroot rootfs /bin/bash -c "
set -exv
export DEBIAN_FRONTEND=noninteractive
if ! command -v sudo &> /dev/null; then
Expand Down