Commit 3120114b authored by songlinfeng's avatar songlinfeng 💬
Browse files

change DTK_MOFED to DCU_MOFED

parent 531c8f22
......@@ -5,7 +5,7 @@ bugfix:
- 去掉默认的ApparmorProfile,让挂载的HCU设备系统文件有可写权限。
## v1.2.2
RDMA:设置环境变量 `DTK_MOFED``enabled`时,开启RADM支持。
RDMA:设置环境变量 `DCU_MOFED``enabled`时,开启RADM支持。
- 挂载发现的 MOFED Infiniband 设备
- --cap-add=SYS_LOCK
......
......@@ -28,7 +28,7 @@ func NewFeatureGatedModifier(logger logger.Interface, cfg *config.Config, image
var discoverers []discover.Discover
if image.Getenv("DTK_MOFED") == "enabled" {
if image.Getenv("DCU_MOFED") == "enabled" {
d, err := discover.NewMOFEDDiscoverer(logger, driver.Root)
if err != nil {
return nil, fmt.Errorf("failed to construct discoverer for MOFED devices: %w", err)
......
......@@ -25,7 +25,7 @@ func NewStableModifier(logger logger.Interface, cfg *config.Config, image image.
// For xprof
addCaps = append(addCaps, "CAP_SYS_RAWIO")
if image.Getenv("DTK_MOFED") == "enabled" {
if image.Getenv("DCU_MOFED") == "enabled" {
addCaps = append(addCaps, "CAP_IPC_LOCK")
}
modifiers = append(modifiers, NewCapModifier(logger, addCaps, []string{}))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment