diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3fe52ef..555e003 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,6 +12,9 @@ env: jobs: build: runs-on: ubuntu-latest + container: + image: ubuntu:24.04 + options: --privileged --cap-add=SYS_ADMIN steps: - uses: actions/checkout@v6 - uses: dtolnay/rust-toolchain@stable diff --git a/src/context/unshare.rs b/src/context/unshare.rs index b49f5c0..5c6b71d 100644 --- a/src/context/unshare.rs +++ b/src/context/unshare.rs @@ -170,7 +170,8 @@ impl UnshareDriver { cmd.envs(env.iter().cloned()); - cmd.arg("--pid") + cmd.arg("--mount-proc") + .arg("--pid") .arg("--ipc") .arg("--uts") .arg("--map-auto") diff --git a/src/deb/cross.rs b/src/deb/cross.rs index e9d8249..770667c 100644 --- a/src/deb/cross.rs +++ b/src/deb/cross.rs @@ -149,7 +149,6 @@ pub fn setup_environment( env: &mut HashMap, arch: &str, ) -> Result<(), Box> { - log::debug!("Running 'dpkg-architecture -a{}'", arch); let dpkg_architecture = String::from_utf8( context::current() .command("dpkg-architecture") @@ -157,7 +156,6 @@ pub fn setup_environment( .output()? .stdout, )?; - log::debug!("dpkg-architecture done"); let env_var_regex = regex::Regex::new(r"(?.*)=(?.*)").unwrap(); for l in dpkg_architecture.lines() { let capture = env_var_regex.captures(l).unwrap();