]> git.ipfire.org Git - thirdparty/mkosi.git/commit
tests: don't fail directory CI if lvm2-monitor.service fails
authorJörg Behrmann <behrmann@physik.fu-berlin.de>
Tue, 21 Jan 2025 14:57:19 +0000 (15:57 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 22 Jan 2025 19:46:51 +0000 (20:46 +0100)
commit899dfbd45eccdd83ac895ccd3d2e12f367624b50
tree3b74ef3784e3d8a907615a1398515d3fd68a3855
parent566875b68e19d8f187fe6bc0eb1f1d6409d35a78
tests: don't fail directory CI if lvm2-monitor.service fails

This service sometimes fails in CI for the arch:directory combination, e.g.

2025-01-21T12:07:33.4370559Z [   14.125731] mkosi-check-and-shutdown.sh[419]: + systemctl --failed --no-legend
2025-01-21T12:07:33.4380022Z [   14.126655] mkosi-check-and-shutdown.sh[420]: + tee /failed-services
2025-01-21T12:07:33.4714973Z [   14.160448] mkosi-check-and-shutdown.sh[420]: ● lvm2-monitor.service not-found failed failed lvm2-monitor.service
2025-01-21T12:07:33.4751355Z [   14.164135] mkosi-check-and-shutdown.sh[418]: + [[ ! -s /failed-services ]]

This is the first time this appears in the partcular boot's logs and we always
ignore it and carry on. Let's sidestep checking whether it is this particular
error by masking the unit.

A possible reason might be that it gets pulled in by udev if a test using LVM
runs first.
mkosi.postinst