mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-02 21:00:55 +00:00
hypha: it works!
This commit is contained in:
parent
7eda5ea185
commit
dc5adcb413
@ -5,7 +5,7 @@ use std::env;
|
|||||||
|
|
||||||
fn main() -> Result<()> {
|
fn main() -> Result<()> {
|
||||||
env::set_var("RUST_BACKTRACE", "1");
|
env::set_var("RUST_BACKTRACE", "1");
|
||||||
env_logger::Builder::from_env(Env::default().default_filter_or("trace")).init();
|
env_logger::Builder::from_env(Env::default().default_filter_or("warn")).init();
|
||||||
if env::var("HYPHA_UNSAFE_ALWAYS_ALLOW_INIT").unwrap_or("0".to_string()) != "1" {
|
if env::var("HYPHA_UNSAFE_ALWAYS_ALLOW_INIT").unwrap_or("0".to_string()) != "1" {
|
||||||
let pid = std::process::id();
|
let pid = std::process::id();
|
||||||
if pid > 3 {
|
if pid > 3 {
|
||||||
|
@ -115,7 +115,7 @@ impl ContainerInit {
|
|||||||
trace!("mounting kernel fs {} to {}", fstype, path);
|
trace!("mounting kernel fs {} to {}", fstype, path);
|
||||||
Mount::builder()
|
Mount::builder()
|
||||||
.fstype(FilesystemType::Manual(fstype))
|
.fstype(FilesystemType::Manual(fstype))
|
||||||
.flags(MountFlags::NODEV | MountFlags::NOEXEC | MountFlags::NOSUID)
|
.flags(MountFlags::NOEXEC | MountFlags::NOSUID)
|
||||||
.data(data)
|
.data(data)
|
||||||
.mount(fstype, path)?;
|
.mount(fstype, path)?;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user