Skip to content

Conversation

@jeffmahoney
Copy link

Description of changes:

This change causes the unit to load the nitro_enclaves kernel module before the service starts.

Since the [email protected] unit was introduced in systemd v245 and there are releases supported by this project using older versions that don't have it, we conditionally install a drop-in file to avoid the warning about the missing unit file.

We use Wants= instead of Requires= so that it's a soft dependency and will attempt to start the service even if the modprobe@ unit is missing or the modprobe fails (or if the drop-in is installed on an older release otherwise).

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

This change causes the unit to load the nitro_enclaves kernel module before the
service starts.

Since the [email protected] unit was introduced in systemd v245 and
there are releases supported by this project using older versions that
don't have it, we conditionally install a drop-in file to avoid the
warning about the missing unit file.

We use Wants= instead of Requires= so that it's a soft dependency and
will attempt to start the service even if the modprobe@ unit is
missing or the modprobe fails (or if the drop-in is installed on an
older release otherwise).

Signed-off-by: Jeff Mahoney <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant