diff --git a/Cargo.lock b/Cargo.lock index 19009f3..11d012b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -161,7 +161,7 @@ dependencies = [ [[package]] name = "krunvm" -version = "0.1.6" +version = "0.2.0" dependencies = [ "clap", "confy", diff --git a/Cargo.toml b/Cargo.toml index b13a04e..4039f28 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "krunvm" -version = "0.1.6" +version = "0.2.0" authors = ["Sergio Lopez "] description = "Create microVMs from OCI images" repository = "https://github.com/containers/krunvm" diff --git a/src/bindings.rs b/src/bindings.rs index 60bc1f1..69d1b4f 100644 --- a/src/bindings.rs +++ b/src/bindings.rs @@ -17,5 +17,6 @@ extern "C" { argv: *const *const i8, envp: *const *const i8, ) -> i32; + pub fn krun_set_env(ctx: u32, envp: *const *const i8) -> i32; pub fn krun_start_enter(ctx: u32) -> i32; } diff --git a/src/start.rs b/src/start.rs index 5f6a1bb..4da23ca 100644 --- a/src/start.rs +++ b/src/start.rs @@ -111,6 +111,14 @@ unsafe fn exec_vm(vmcfg: &VmConfig, rootfs: &str, cmd: Option<&str>, args: Vec = Vec::new(); for a in args.iter() { @@ -118,16 +126,6 @@ unsafe fn exec_vm(vmcfg: &VmConfig, rootfs: &str, cmd: Option<&str>, args: Vec, args: Vec