Skip to content

Commit 1e893b1

Browse files
committed
devmapper: add no_devmapper build tag
Signed-off-by: Maksym Pavlenko <[email protected]>
1 parent 208957b commit 1e893b1

3 files changed

Lines changed: 22 additions & 1 deletion

File tree

BUILDING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ make generate
104104
> * `no_btrfs`: A build tag disables building the btrfs snapshot driver.
105105
> * `no_cri`: A build tag disables building Kubernetes [CRI](http://blog.kubernetes.io/2016/12/container-runtime-interface-cri-in-kubernetes.html) support into containerd.
106106
> See [here](https://github.com/containerd/cri-containerd#build-tags) for build tags of CRI plugin.
107+
> * `no_devmapper`: A build tag disables building the device mapper snapshot driver.
107108
>
108109
> For example, adding `BUILDTAGS=no_btrfs` to your environment before calling the **binaries**
109110
> Makefile target will disable the btrfs driver within the containerd Go build.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// +build !no_devmapper
2+
3+
/*
4+
Copyright The containerd Authors.
5+
6+
Licensed under the Apache License, Version 2.0 (the "License");
7+
you may not use this file except in compliance with the License.
8+
You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing, software
13+
distributed under the License is distributed on an "AS IS" BASIS,
14+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
See the License for the specific language governing permissions and
16+
limitations under the License.
17+
*/
18+
19+
package main
20+
21+
import _ "github.com/containerd/containerd/snapshots/devmapper"

cmd/containerd/builtins_linux.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import (
2222
_ "github.com/containerd/containerd/runtime/v1/linux"
2323
_ "github.com/containerd/containerd/runtime/v2"
2424
_ "github.com/containerd/containerd/runtime/v2/runc/options"
25-
_ "github.com/containerd/containerd/snapshots/devmapper"
2625
_ "github.com/containerd/containerd/snapshots/native"
2726
_ "github.com/containerd/containerd/snapshots/overlay"
2827
_ "github.com/containerd/zfs"

0 commit comments

Comments
 (0)