Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

Commit aa26535

Browse files
author
Gao feng
committed
send Next message to hyper in vbox environment
Signed-off-by: Gao feng <[email protected]>
1 parent 56e5e66 commit aa26535

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/container.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ static int container_setup_mount(struct hyper_container *container)
112112
char src[512];
113113
struct fsmap *map;
114114

115+
hyper_mkdir("/proc");
116+
hyper_mkdir("/sys");
117+
hyper_mkdir("/dev");
118+
115119
if (mount("proc", "/proc", "proc", 0, NULL) < 0 ||
116120
mount("sysfs", "/sys", "sysfs", 0, NULL) < 0 ||
117121
mount("devtmpfs", "/dev", "devtmpfs", 0, NULL) < 0) {
@@ -307,7 +311,6 @@ static int hyper_container_init(void *data)
307311
fprintf(stdout, "root directory for container is %s/%s, init task %s\n",
308312
root, container->rootfs, container->exec.argv[0]);
309313

310-
hyper_list_dir(root);
311314
sprintf(oldroot, "%s/%s/.oldroot", root, container->rootfs);
312315
if (hyper_mkdir(oldroot) < 0) {
313316
perror("make oldroot directroy failed");
@@ -354,6 +357,7 @@ static int hyper_container_init(void *data)
354357
close(arg->pipe[1]);
355358

356359
execvp(container->exec.argv[0], container->exec.argv);
360+
perror("exec container command failed");
357361

358362
_exit(-1);
359363

src/init.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -878,11 +878,7 @@ static struct hyper_event_ops hyper_channel_ops = {
878878
.rbuf_size = 10240,
879879
.len_offset = 4,
880880
/* TODO: vbox hyper should support channel ack */
881-
#ifdef WITH_VBOX
882-
.ack = 0,
883-
#else
884881
.ack = 1,
885-
#endif
886882
};
887883

888884
static struct hyper_event_ops hyper_ttyfd_ops = {

0 commit comments

Comments
 (0)