Skip to content

Ignore modprobe failures in ExecStartPre (systemd unit)#2776

Merged
estesp merged 1 commit intocontainerd:masterfrom
thaJeztah:ignore_modprobe_failures
Nov 10, 2018
Merged

Ignore modprobe failures in ExecStartPre (systemd unit)#2776
estesp merged 1 commit intocontainerd:masterfrom
thaJeztah:ignore_modprobe_failures

Conversation

@thaJeztah
Copy link
Copy Markdown
Member

When running containerd inside LXC, due to systemd being unable to execute
modprobe overlay inside the container (module is already loaded in host kernel).

This patch adds a - prefix to the ExecStartPre command, so that failures
are ignored, and the service can start as usual.

fixes #2772

When running containerd inside LXC, due to systemd being unable to execute
`modprobe overlay` inside the container (module is already loaded in host kernel).

This patch adds a `-` prefix to the `ExecStartPre` command, so that failures
are ignored, and the service can start as usual.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah
Copy link
Copy Markdown
Member Author

thaJeztah commented Nov 10, 2018

@lbschenkel @estesp @crosbymichael

Also opened backports for active releases;

@lbschenkel
Copy link
Copy Markdown

+1. Looks good to me, but I'm just a bystander.

@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #2776 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2776   +/-   ##
=======================================
  Coverage   43.72%   43.72%           
=======================================
  Files         100      100           
  Lines       10734    10734           
=======================================
  Hits         4693     4693           
  Misses       5311     5311           
  Partials      730      730
Flag Coverage Δ
#linux 47.39% <ø> (ø) ⬆️
#windows 40.89% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 96d3078...555ea3f. Read the comment docs.

Copy link
Copy Markdown
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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.

ExecStartPre=/sbin/modprobe fails inside LXC

5 participants