Skip to content

Commit 1e01950

Browse files
authored
Merge pull request #1606 from cgwalters/cfs-ci
ci: Also validate the composefs-backend feature
2 parents 4f49e6a + d5df694 commit 1e01950

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ validate-rust:
9494
cargo test --no-run
9595
(cd crates/ostree-ext && cargo check --no-default-features)
9696
(cd crates/lib && cargo check --no-default-features)
97+
cargo check --features=composefs-backend
9798
cargo clippy -- $(CLIPPY_CONFIG)
9899
env RUSTDOCFLAGS='-D warnings' cargo doc --lib
99100
.PHONY: validate-rust

crates/initramfs/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ pub fn mount_at_wrapper(
112112
.with_context(|| format!("Mounting at path {path:?}"))
113113
}
114114

115-
/// Wrapper around [`rustix::openat`]
115+
/// Wrapper around [`rustix::fs::openat`]
116116
#[context("Opening dir {name:?}")]
117117
pub fn open_dir(dirfd: impl AsFd, name: impl AsRef<Path> + Debug) -> Result<OwnedFd> {
118118
let res = openat(

crates/lib/src/install.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ const SELINUXFS: &str = "/sys/fs/selinux";
8787
/// The mount path for uefi
8888
pub(crate) const EFIVARFS: &str = "/sys/firmware/efi/efivars";
8989
pub(crate) const ARCH_USES_EFI: bool = cfg!(any(target_arch = "x86_64", target_arch = "aarch64"));
90+
#[cfg(any(feature = "composefs-backend", feature = "install-to-disk"))]
9091
pub(crate) const ESP_GUID: &str = "C12A7328-F81F-11D2-BA4B-00A0C93EC93B";
92+
#[cfg(any(feature = "composefs-backend", feature = "install-to-disk"))]
9193
pub(crate) const DPS_UUID: &str = "6523f8ae-3eb1-4e2a-a05a-18b695ae656f";
9294

9395
const DEFAULT_REPO_CONFIG: &[(&str, &str)] = &[

0 commit comments

Comments
 (0)