Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
inclavare-containers
提交
c5c43d6a
I
inclavare-containers
项目概览
openanolis
/
inclavare-containers
通知
4
Star
7
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
5
列表
看板
标记
里程碑
合并请求
0
分析
仓库
DevOps
项目成员
Pages
I
inclavare-containers
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
5
Issue
5
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
c5c43d6a
编写于
7月 08, 2020
作者:
S
stormgbs
提交者:
GitHub
7月 08, 2020
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #66 from jiazhiguang/master
fix the issue that /dev is mounted abnormally in the scratch image
上级
4b0aced1
d750d269
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
0 addition
and
25 deletion
+0
-25
shim/runtime/carrier/constants/constants.go
shim/runtime/carrier/constants/constants.go
+0
-1
shim/runtime/carrier/occlum/occlum.go
shim/runtime/carrier/occlum/occlum.go
+0
-4
shim/runtime/v2/rune/v2/rune.go
shim/runtime/v2/rune/v2/rune.go
+0
-20
未找到文件。
shim/runtime/carrier/constants/constants.go
浏览文件 @
c5c43d6a
...
...
@@ -11,7 +11,6 @@ const (
EnclaveRuntimePathKeyName
=
"ENCLAVE_RUNTIME_PATH"
EnclaveRuntimeArgsKeyName
=
"ENCLAVE_RUNTIME_ARGS"
DefaultEnclaveRuntimeArgs
=
".occlum"
OcclumConfigPathKeyName
=
"OCCLUM_CONFIG_PATH"
)
const
(
...
...
shim/runtime/carrier/occlum/occlum.go
浏览文件 @
c5c43d6a
...
...
@@ -346,10 +346,6 @@ func (c *occlum) initBundleConfig() error {
carr_const
.
EnclaveTypeKeyName
:
string
(
carr_const
.
IntelSGX
),
carr_const
.
EnclaveRuntimeArgsKeyName
:
carr_const
.
DefaultEnclaveRuntimeArgs
,
}
occlumConfigPath
,
ok
:=
config
.
GetEnv
(
spec
,
carr_const
.
OcclumConfigPathKeyName
)
if
ok
{
c
.
configPath
=
occlumConfigPath
}
c
.
spec
=
spec
if
err
:=
config
.
UpdateEnvs
(
spec
,
envs
,
false
);
err
!=
nil
{
return
err
...
...
shim/runtime/v2/rune/v2/rune.go
浏览文件 @
c5c43d6a
...
...
@@ -57,13 +57,6 @@ func (s *service) carrierMain(req *taskAPI.CreateTaskRequest) (carrier.Carrier,
return
carr
,
err
}
// mount oci defined mounts
err
=
mountOCIOnRootfs
(
req
.
Bundle
)
defer
unmountOCIOnRootfs
(
req
.
Bundle
)
if
err
!=
nil
{
return
carr
,
err
}
case
rune
.
Graphene
:
carr
,
err
=
graphene
.
NewGrapheneCarrier
()
case
rune
.
Empty
:
...
...
@@ -232,19 +225,6 @@ func mountOCIOnRootfs(bundle string) error {
Options
:
rm
.
Options
,
}
target
:=
filepath
.
Clean
(
filepath
.
Join
(
bundle
,
"rootfs"
,
rm
.
Destination
))
s
,
err
:=
os
.
Stat
(
rm
.
Source
)
if
err
!=
nil
{
if
os
.
IsNotExist
(
err
)
{
continue
}
return
err
}
if
s
.
IsDir
()
{
os
.
MkdirAll
(
target
,
s
.
Mode
())
}
else
{
os
.
MkdirAll
(
path
.
Dir
(
target
),
0644
)
os
.
Create
(
target
)
}
if
err
:=
m
.
Mount
(
target
);
err
!=
nil
{
return
errors
.
Wrapf
(
err
,
"failed to mount rootfs component %v, err: %++v"
,
m
,
err
)
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录