Adding /tmp to containers
Dependencies
- [2]
YJYXDY6ACapturing stdout/stderr for the derivations that ask - [3]
NWEGAWPPMounting /proc, /sys and /dev in the chroot - [4]
BQ4E3XLAForwarding stdout/stderr - [5]
ODUDDQRYAdding the OCaml interface - [*]
VWVW5VOICopying the sources in /src instead of /
Change contents
- replacement in src/container.rs at line 234
debug!("run in container, path = {:#?}", r.paths);debug!("run in container, {:?} {:?} path = {:#?}",r.name, r.target, r.paths); - replacement in src/container.rs at line 245
debug!("name = {:?}", name); - edit in src/container.rs at line 344
info!("removing {:?}", tmp_dir);std::fs::remove_dir_all(&tmp_dir).unwrap_or(()); - edit in src/container.rs at line 495[7.79][4.57268]
let tmp_tmp = tmp_dir.join("tmp");std::fs::create_dir_all(&tmp_tmp)?; - edit in src/container.rs at line 501
std::mem::forget(mount::Mount::ramfs(&tmp_tmp).unwrap());let mut perm = std::fs::metadata(&tmp_tmp).unwrap().permissions();perm.set_mode(0o777);std::fs::set_permissions(&tmp_tmp, perm).unwrap();std::os::unix::fs::chown(tmp_dir, Some(uid), Some(gid)).unwrap(); - replacement in src/container.rs at line 616
panic!("execve failed: {:?}", std::io::Error::last_os_error())panic!("execve failed: {:?} {:?}",c,std::io::Error::last_os_error()) - edit in src/container.rs at line 676
let path = path.strip_prefix(p).unwrap();