if (detect_container() > 0)
return;
- if (!IN_SET(u->type, UNIT_SERVICE, UNIT_MOUNT, UNIT_SWAP))
+ if (!UNIT_VTABLE(u)->notify_plymouth)
return;
/* We set SOCK_NONBLOCK here so that we rather drop the
},
.can_start = mount_can_start,
+
+ .notify_plymouth = true,
};
.can_start = service_can_start,
+ .notify_plymouth = true,
+
.audit_start_message_type = AUDIT_SERVICE_START,
.audit_stop_message_type = AUDIT_SERVICE_STOP,
};
},
.can_start = swap_can_start,
+
+ .notify_plymouth = true,
};
/* True if systemd-oomd can monitor and act on this unit's recursive children's cgroups */
bool can_set_managed_oom;
+ /* If true, we'll notify plymouth about this unit */
+ bool notify_plymouth;
+
/* The audit events to generate on start + stop (or 0 if none shall be generated) */
int audit_start_message_type;
int audit_stop_message_type;