From 0f236e8cd6309cdc392d9e62bc545dcd497a9c50 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Wed, 13 Dec 2023 14:28:00 +0900 Subject: test: mask mdmonitor when building image Follow-up for 22e31655f3f9f54d932d4f48b92b36698e701729. --- test/test-functions | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/test-functions') diff --git a/test/test-functions b/test/test-functions index b2a83f155b..f613dc215d 100644 --- a/test/test-functions +++ b/test/test-functions @@ -1289,6 +1289,10 @@ install_mdadm() { for unit in "${mdadm_units[@]}"; do image_install "${ROOTLIBDIR:?}/$unit" done + + # Disable the mdmonitor service, since it fails if there's no valid email address + # configured in /etc/mdadm.conf, which just unnecessarily pollutes the logs + "${SYSTEMCTL:?}" mask --root "${initdir:?}" mdmonitor.service || : } install_compiled_systemd() { -- cgit v1.2.3