]> git.ipfire.org Git - thirdparty/mkosi.git/commit
tests: ignore masked units in check-and-shutdown main
authorMartin Pitt <martin@amutable.com>
Thu, 18 Jun 2026 04:52:39 +0000 (06:52 +0200)
committerJörg Behrmann <behrmann@physik.fu-berlin.de>
Fri, 19 Jun 2026 13:22:56 +0000 (15:22 +0200)
commit718b06c86618e5240e6a73ec67aab5cef9db6678
treee4ab6dbc1f3485aee789140a34e9f23a63fdfb93
parent50c8feb6554cc4a226cb6e4c51b05ca0e7373f7b
tests: ignore masked units in check-and-shutdown

Masking lvm2-monitor.service in 899dfbd45 did not actually stop it from
tripping the boot check: a masked unit that udev pulls in when scanning a
disk image's partitions still fails to start and is listed by
`systemctl --failed` with ACTIVE=failed. Masking only changed the LOAD
column from `not-found` to `masked`.

A masked unit failing to start is noise, not a real service failure in the
image, so filter masked units out of the failed-services check.

Also explain mkosi.postinst *why* lvm2-monitor.service even fails in the
first place: It's only installed in the initrd, not the main image. That
may or may not be a bug, but it's uninteresting for the "failed
services?" check.
mkosi.extra/usr/lib/systemd/mkosi-check-and-shutdown.sh
mkosi.postinst