Skip to content

Commit

Permalink
Merge pull request #3332 from cgwalters/fixups-for-fcos-composefs-def…
Browse files Browse the repository at this point in the history
…ault

tests: Skip checking for immutable bit on composefs
  • Loading branch information
cgwalters authored Oct 30, 2024
2 parents 841c8a6 + 80c7b86 commit a35094a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/inst/src/sysroot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ pub(crate) fn itest_immutable_bit() -> Result<()> {
if skip_non_ostree_host() {
return Ok(());
}
let sh = &xshell::Shell::new()?;
let fstype = cmd!(sh, "findmnt -n -o FSTYPE /").read()?;
// If we're on composefs then we're done
if fstype.as_str() == "overlay" {
return Ok(());
}
// https://bugzilla.redhat.com/show_bug.cgi?id=1867601
cmd_has_output(sh_inline::bash_command!("lsattr -d /").unwrap(), "-i-")?;
Ok(())
Expand Down

0 comments on commit a35094a

Please sign in to comment.