Skip to content

[release/1.1] cherry-pick: Ignore modprobe failures in ExecStartPre (systemd unit)#2778

Merged
estesp merged 1 commit intocontainerd:release/1.1from
thaJeztah:1.1_backport_ignore_modprobe_failures
Nov 10, 2018
Merged

[release/1.1] cherry-pick: Ignore modprobe failures in ExecStartPre (systemd unit)#2778
estesp merged 1 commit intocontainerd:release/1.1from
thaJeztah:1.1_backport_ignore_modprobe_failures

Conversation

@thaJeztah
Copy link
Copy Markdown
Member

Backport of #2776 for the 1.1 branch
fixes #2772 for the 1.1.x releases

git checkout -b 1.1_backport_ignore_modprobe_failures upstream/release/1.1
git cherry-pick -s -S -x 555ea3fb43505512bba51563183a80b2d4a1d028

cherry-pick was clean; no conflicts

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.

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]>
(cherry picked from commit 555ea3f)
Signed-off-by: Sebastiaan van Stijn <[email protected]>
@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #2778 into release/1.1 will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##           release/1.1    #2778   +/-   ##
============================================
  Coverage        48.99%   48.99%           
============================================
  Files               85       85           
  Lines             7603     7603           
============================================
  Hits              3725     3725           
  Misses            3203     3203           
  Partials           675      675
Flag Coverage Δ
#linux 48.99% <ø> (ø) ⬆️

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 b337430...36d2576. 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

@estesp estesp merged commit a7dff7e into containerd:release/1.1 Nov 10, 2018
@thaJeztah thaJeztah deleted the 1.1_backport_ignore_modprobe_failures branch November 11, 2018 00:37
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.

4 participants