Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
b0b84070
Unverified
Commit
b0b84070
authored
Apr 17, 2019
by
Christian Brauner
Committed by
GitHub
Apr 17, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2941 from flx42/reorder-mounts
conf: do lxc.mount.entry mounts right after lxc.mount.fstab
parents
e9e4dd29
c631115d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
conf.c
src/lxc/conf.c
+9
-9
No files found.
src/lxc/conf.c
View file @
b0b84070
...
...
@@ -3546,6 +3546,15 @@ int lxc_setup(struct lxc_handler *handler)
return
-
1
;
}
if
(
!
lxc_list_empty
(
&
lxc_conf
->
mount_list
))
{
ret
=
setup_mount_entries
(
lxc_conf
,
&
lxc_conf
->
rootfs
,
&
lxc_conf
->
mount_list
,
name
,
lxcpath
);
if
(
ret
<
0
)
{
ERROR
(
"Failed to setup mount entries"
);
return
-
1
;
}
}
if
(
lxc_conf
->
is_execute
)
{
if
(
execveat_supported
())
{
int
fd
;
...
...
@@ -3604,15 +3613,6 @@ int lxc_setup(struct lxc_handler *handler)
}
}
if
(
!
lxc_list_empty
(
&
lxc_conf
->
mount_list
))
{
ret
=
setup_mount_entries
(
lxc_conf
,
&
lxc_conf
->
rootfs
,
&
lxc_conf
->
mount_list
,
name
,
lxcpath
);
if
(
ret
<
0
)
{
ERROR
(
"Failed to setup mount entries"
);
return
-
1
;
}
}
/* Make sure any start hooks are in the container */
if
(
!
verify_start_hooks
(
lxc_conf
))
{
ERROR
(
"Failed to verify start hooks"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment