diff --git a/src/container.c b/src/container.c index 0075a41..bc9cb77 100644 --- a/src/container.c +++ b/src/container.c @@ -112,6 +112,10 @@ static int container_setup_mount(struct hyper_container *container) char src[512]; struct fsmap *map; + hyper_mkdir("/proc"); + hyper_mkdir("/sys"); + hyper_mkdir("/dev"); + if (mount("proc", "/proc", "proc", 0, NULL) < 0 || mount("sysfs", "/sys", "sysfs", 0, NULL) < 0 || mount("devtmpfs", "/dev", "devtmpfs", 0, NULL) < 0) { @@ -307,7 +311,6 @@ static int hyper_container_init(void *data) fprintf(stdout, "root directory for container is %s/%s, init task %s\n", root, container->rootfs, container->exec.argv[0]); - hyper_list_dir(root); sprintf(oldroot, "%s/%s/.oldroot", root, container->rootfs); if (hyper_mkdir(oldroot) < 0) { perror("make oldroot directroy failed"); @@ -354,6 +357,7 @@ static int hyper_container_init(void *data) close(arg->pipe[1]); execvp(container->exec.argv[0], container->exec.argv); + perror("exec container command failed"); _exit(-1); diff --git a/src/init.c b/src/init.c index e747303..aca618c 100644 --- a/src/init.c +++ b/src/init.c @@ -878,11 +878,7 @@ static struct hyper_event_ops hyper_channel_ops = { .rbuf_size = 10240, .len_offset = 4, /* TODO: vbox hyper should support channel ack */ -#ifdef WITH_VBOX - .ack = 0, -#else .ack = 1, -#endif }; static struct hyper_event_ops hyper_ttyfd_ops = {