提交 cb4117e8 编写于 作者: O openeuler-ci-bot 提交者: Gitee

!23 lcr: remove redundant tty config

Merge pull request !23 from lifeng_isula/master_rm_tty
%global _version 2.0.0
%global _release 20200402.161208.git1eb4b458
%global _release 20200418.180849.git0944f121
Name: lcr
Version: %{_version}
Release: %{_release}
......
......@@ -2587,22 +2587,6 @@ static int add_needed_pty_conf(struct lcr_list *conf)
return 0;
}
static int add_needed_tty_conf(struct lcr_list *conf)
{
struct lcr_list *node = create_lcr_list_node("lxc.tty.max", "4");
if (node == NULL) {
return -1;
}
lcr_list_add_tail(conf, node);
node = create_lcr_list_node("lxc.tty.dir", "lxc");
if (node == NULL) {
return -1;
}
lcr_list_add_tail(conf, node);
return 0;
}
static int add_needed_net_conf(struct lcr_list *conf)
{
struct lcr_list *node = create_lcr_list_node("lxc.net.0.type", "empty");
......@@ -2628,9 +2612,6 @@ struct lcr_list *get_needed_lxc_conf()
}
lcr_list_init(conf);
if (add_needed_tty_conf(conf) < 0) {
goto out_free;
}
if (add_needed_pty_conf(conf) < 0) {
goto out_free;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册