Skip to content

Commit

Permalink
CI: Use newer version of autopkgtest
Browse files Browse the repository at this point in the history
To avoid errors such as this:
```
Running setup script /usr/share/autopkgtest/setup-commands/setup-testbed...
awk: fatal: cannot open file `/etc/apt/sources.list' for reading: No such file or directory
sh: Attempting to set up Debian/Ubuntu apt sources automatically
Failed to auto-detect apt mirror; set $MIRROR explicitly
```
  • Loading branch information
slyon committed Jan 29, 2024
1 parent 1fb01cd commit 8354b0a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/network-manager.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ jobs:
run: |
sudo apt update
sudo apt install autopkgtest ubuntu-dev-tools devscripts openvswitch-switch linux-modules-extra-$(uname -r)
pull-lp-debs autopkgtest noble
sudo dpkg -i autopkgtest_*_all.deb
- name: Prepare test
run: |
pull-lp-source netplan.io
Expand All @@ -60,7 +62,7 @@ jobs:
# work around LP: #1878225 as fallback
- name: Preparing autopkgtest-build-lxd
run: |
sudo patch /usr/bin/autopkgtest-build-lxd .github/workflows/snapd.patch
sudo patch /usr/bin/autopkgtest-build-lxd .github/workflows/snapd.noble.patch
autopkgtest-build-lxd ubuntu-daily:noble
- name: Run autopkgtest
run: |
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/snapd.noble.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@@ -70,6 +70,8 @@

sleep 5
if "$COMMAND" exec "$CONTAINER" -- systemctl mask serial-getty@getty.service; then
+ "$COMMAND" exec "$CONTAINER" -- systemctl mask snapd.service
+ "$COMMAND" exec "$CONTAINER" -- systemctl mask snapd.seeded.service
"$COMMAND" exec "$CONTAINER" -- reboot
fi

0 comments on commit 8354b0a

Please sign in to comment.