mirror of
git://github.com/lxc/lxc
synced 2025-09-01 00:58:00 +00:00
Merge pull request #3842 from brauner/2021-05-14.fixes
start: move idmapped mount setup later
This commit is contained in:
@@ -1786,12 +1786,6 @@ static int lxc_spawn(struct lxc_handler *handler)
|
||||
}
|
||||
}
|
||||
|
||||
ret = lxc_rootfs_prepare_parent(handler);
|
||||
if (ret) {
|
||||
ERROR("Failed to prepare rootfs");
|
||||
goto out_delete_net;
|
||||
}
|
||||
|
||||
if (!lxc_sync_wake_child(handler, START_SYNC_STARTUP))
|
||||
goto out_delete_net;
|
||||
|
||||
@@ -1852,6 +1846,12 @@ static int lxc_spawn(struct lxc_handler *handler)
|
||||
}
|
||||
}
|
||||
|
||||
ret = lxc_rootfs_prepare_parent(handler);
|
||||
if (ret) {
|
||||
ERROR("Failed to prepare rootfs");
|
||||
goto out_delete_net;
|
||||
}
|
||||
|
||||
if (!lxc_list_empty(&conf->procs)) {
|
||||
ret = setup_proc_filesystem(&conf->procs, handler->pid);
|
||||
if (ret < 0)
|
||||
|
Reference in New Issue
Block a user