|
43 | 43 | if [[ "${LXD_ARCH}" == "arm64" ]] |
44 | 44 | then |
45 | 45 | LXC_CMD="incus" |
46 | | - RUNNER_LABEL="ubuntu-20.04-arm64" |
| 46 | + RUNNER_LABEL="ubuntu-26.04-arm64" |
47 | 47 | echo "lxd_extra_profile=network" | tee -a "$GITHUB_OUTPUT" |
48 | 48 | else |
49 | 49 | LXC_CMD="incus" |
@@ -71,10 +71,11 @@ jobs: |
71 | 71 | with: |
72 | 72 | ref: "${{ env.VERSION }}" |
73 | 73 | - name: Setup incus |
74 | | - if: ${{ needs.determine-runner.outputs.runner_label != 'ubuntu-20.04-arm64' }} |
| 74 | + if: ${{ needs.determine-runner.outputs.runner_label != 'ubuntu-26.04-arm64' }} |
75 | 75 | run: | |
76 | 76 | sudo apt-get update |
77 | | - sudo apt-get install -y incus qemu-system incus-tools |
| 77 | + sudo apt-get install -y incus qemu-system |
| 78 | + sudo apt-get install -y incus-tools || sudo apt-get install -y incus-extra |
78 | 79 | sudo iptables -I DOCKER-USER -i incusbr0 -j ACCEPT |
79 | 80 | sudo iptables -I DOCKER-USER -o incusbr0 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT |
80 | 81 | sudo incus admin init --auto |
@@ -147,7 +148,7 @@ jobs: |
147 | 148 | echo "VERSION=$version" >> "$GITHUB_ENV" |
148 | 149 | echo "previous_version=${version}" >> $GITHUB_OUTPUT |
149 | 150 | - name: Setup incus |
150 | | - if: ${{ needs.determine-runner.outputs.runner_label != 'ubuntu-20.04-arm64' }} |
| 151 | + if: ${{ needs.determine-runner.outputs.runner_label != 'ubuntu-26.04-arm64' }} |
151 | 152 | run: | |
152 | 153 | sudo apt-get update |
153 | 154 | sudo apt-get install -y incus qemu-system incus-tools |
@@ -199,7 +200,7 @@ jobs: |
199 | 200 | with: |
200 | 201 | ref: "${{ env.VERSION }}" |
201 | 202 | - name: Setup incus |
202 | | - if: ${{ needs.determine-runner.outputs.runner_label != 'ubuntu-20.04-arm64' }} |
| 203 | + if: ${{ needs.determine-runner.outputs.runner_label != 'ubuntu-26.04-arm64' }} |
203 | 204 | run: | |
204 | 205 | sudo apt-get update |
205 | 206 | sudo apt-get install -y incus qemu-system incus-tools |
@@ -254,7 +255,7 @@ jobs: |
254 | 255 | . ./build/buildlib.sh |
255 | 256 | sudo "$LXC" delete -q -f ncp || true |
256 | 257 | sudo "$LXC" image import -q "./${ARTIFACT_FILE?}" --alias "ncp/test" || true |
257 | | - LXC_ARGS=(-p default) |
| 258 | + LXC_ARGS=(-p default -c security.nesting=true) |
258 | 259 | [[ -z "$LXD_EXTRA_PROFILE" ]] || LXC_ARGS+=(-p "$LXD_EXTRA_PROFILE") |
259 | 260 | systemd-run --user --scope -p "Delegate=yes" "$LXC" launch -q "${LXC_ARGS[@]}" "ncp/test" ncp || \ |
260 | 261 | sudo systemd-run --scope -p "Delegate=yes" "$LXC" launch -q "${LXC_ARGS[@]}" "ncp/test" ncp |
@@ -418,7 +419,7 @@ jobs: |
418 | 419 | USE_INCUS: "${{ needs.determine-runner.outputs.lxc_cmd == 'incus' && 'yes' || 'no' }}" |
419 | 420 | steps: |
420 | 421 | - name: Setup incus |
421 | | - if: ${{ needs.determine-runner.outputs.runner_label != 'ubuntu-20.04-arm64' }} |
| 422 | + if: ${{ needs.determine-runner.outputs.runner_label != 'ubuntu-26.04-arm64' }} |
422 | 423 | run: | |
423 | 424 | sudo apt-get update |
424 | 425 | sudo apt-get install -y incus qemu-system incus-tools |
@@ -474,7 +475,7 @@ jobs: |
474 | 475 | . ./build/buildlib.sh |
475 | 476 | sudo "$LXC" delete -q -f ncp || true |
476 | 477 | sudo "$LXC" image import -q "./ncp.tar.gz" --alias "ncp/update" || true |
477 | | - LXC_ARGS=(-p default) |
| 478 | + LXC_ARGS=(-p default -c security.nesting=true) |
478 | 479 | [[ -z "$LXD_EXTRA_PROFILE" ]] || LXC_ARGS+=(-p "$LXD_EXTRA_PROFILE") |
479 | 480 | systemd-run --user --scope -p "Delegate=yes" "$LXC" launch -q "${LXC_ARGS[@]}" "ncp/update" ncp || \ |
480 | 481 | sudo systemd-run --scope -p "Delegate=yes" "$LXC" launch -q "${LXC_ARGS[@]}" "ncp/update" ncp |
@@ -739,7 +740,7 @@ jobs: |
739 | 740 | with: |
740 | 741 | ref: "${{ env.VERSION }}" |
741 | 742 | - name: Setup incus |
742 | | - if: ${{ needs.determine-runner.outputs.runner_label != 'ubuntu-20.04-arm64' }} |
| 743 | + if: ${{ needs.determine-runner.outputs.runner_label != 'ubuntu-26.04-arm64' }} |
743 | 744 | run: | |
744 | 745 | sudo apt-get update |
745 | 746 | sudo apt-get install -y incus qemu-system incus-tools |
@@ -794,7 +795,7 @@ jobs: |
794 | 795 | . ./build/buildlib.sh |
795 | 796 | sudo "$LXC" delete -q -f ncp || true |
796 | 797 | sudo "$LXC" image import -q "./${ARTIFACT_FILE?}" --alias "ncp/test" || true |
797 | | - LXC_ARGS=(-p default) |
| 798 | + LXC_ARGS=(-p default -c security.nesting=true) |
798 | 799 | [[ -z "$LXD_EXTRA_PROFILE" ]] || LXC_ARGS+=(-p "$LXD_EXTRA_PROFILE") |
799 | 800 | systemd-run --user --scope -p "Delegate=yes" "$LXC" launch -q "${LXC_ARGS[@]}" "ncp/test" ncp || \ |
800 | 801 | sudo systemd-run --scope -p "Delegate=yes" "$LXC" launch -q "${LXC_ARGS[@]}" "ncp/test" ncp |
|
0 commit comments