1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-07 17:17:44 +03:00

semaphore: move back to autopkgtest master branch

Instead of fixing the commit, we can workaround the adduser issue by
simply creating a user manually beforehand, which means the broken
codepath in autopkgtest is not taken. We can remove it once it's
fixed upstream, which is in progress:

https://salsa.debian.org/ci-team/autopkgtest/-/merge_requests/297
(cherry picked from commit 8b7485c505)
(cherry picked from commit 4f4cd7c9f4)
(cherry picked from commit 9b4703992b)
This commit is contained in:
Luca Boccassi 2024-03-09 12:42:32 +00:00 committed by Luca Boccassi
parent d737ef1c4f
commit 9642f72eee

View File

@ -48,6 +48,8 @@ apt-get install -y fdisk tree libfdisk-dev libp11-kit-dev libssl-dev libpwqualit
apt-get purge --auto-remove -y unattended-upgrades
systemctl unmask systemd-networkd
systemctl enable systemd-networkd
# Remove once https://salsa.debian.org/ci-team/autopkgtest/-/merge_requests/297 is sorted
adduser --disabled-login --gecos 'Temporary autopkgtest user,,,' autopkgtest
EOF
sudo lxc-stop -n "$CONTAINER"
}
@ -64,7 +66,7 @@ for phase in "${PHASES[@]}"; do
sudo apt-get install -y -t "$UBUNTU_RELEASE-backports" lxc
sudo apt-get install -y python3-debian git dpkg-dev fakeroot python3-jinja2
[ -d "$AUTOPKGTEST_DIR" ] || git clone --quiet --branch=debian/5.32 --depth=1 https://salsa.debian.org/ci-team/autopkgtest.git "$AUTOPKGTEST_DIR"
[ -d "$AUTOPKGTEST_DIR" ] || git clone --quiet --depth=1 https://salsa.debian.org/ci-team/autopkgtest.git "$AUTOPKGTEST_DIR"
create_container
;;