test: Add workaround for podman unit bug

See https://github.com/containers/podman/issues/8751

Same as hack in upstream:
https://github.com/cockpit-project/cockpit-podman/blob/7f27d6162/Makefile#L162
This commit is contained in:
Martin Pitt 2021-02-08 15:56:44 +01:00
parent d313d525e8
commit d4d188541f

View File

@ -28,6 +28,11 @@ else
https://kojipkgs.fedoraproject.org//packages/chromium/87.0.4280.141/1.fc33/x86_64/chromium-headless-87.0.4280.141-1.fc33.x86_64.rpm https://kojipkgs.fedoraproject.org//packages/chromium/87.0.4280.141/1.fc33/x86_64/chromium-headless-87.0.4280.141-1.fc33.x86_64.rpm
fi fi
# HACK: systemd kills the services after 90s
# See https://github.com/containers/podman/issues/8751
sed -i 's/Type=notify/Type=exec/' /usr/lib/systemd/system/podman.service
sed -i 's/Type=notify/Type=exec/' /usr/lib/systemd/user/podman.service
# create user account for logging in # create user account for logging in
if ! id admin 2>/dev/null; then if ! id admin 2>/dev/null; then
useradd -c Administrator -G wheel admin useradd -c Administrator -G wheel admin