mirror of
https://github.com/clearlinux/hyperstart.git
synced 2026-09-05 13:11:37 +00:00
send Next message to hyper in vbox environment
Signed-off-by: Gao feng <feng@hyper.sh>
This commit is contained in:
+5
-1
@@ -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);
|
||||
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user