diff --git a/crates/lib/src/install/baseline.rs b/crates/lib/src/install/baseline.rs index 0db968b..b852efb 100644 --- a/crates/lib/src/install/baseline.rs +++ b/crates/lib/src/install/baseline.rs @@ -155,6 +155,13 @@ fn mkfs<'a>( t.cmd.arg("-U"); t.cmd.arg(u.to_string()); } + Filesystem::Bcachefs => { + if wipe { + t.cmd.arg("--force"); + } + t.cmd.arg("--uuid"); + t.cmd.arg(u.to_string()); + } }; // Today all the above mkfs commands take -L t.cmd.args(["-L", label]); diff --git a/crates/lib/src/install/config.rs b/crates/lib/src/install/config.rs index 7f123e4..615e2fb 100644 --- a/crates/lib/src/install/config.rs +++ b/crates/lib/src/install/config.rs @@ -24,6 +24,7 @@ pub(crate) enum Filesystem { Xfs, Ext4, Btrfs, + Bcachefs, } impl std::fmt::Display for Filesystem { @@ -40,6 +41,7 @@ impl TryFrom<&str> for Filesystem { "xfs" => Ok(Self::Xfs), "ext4" => Ok(Self::Ext4), "btrfs" => Ok(Self::Btrfs), + "bcachefs" => Ok(Self::Bcachefs), other => anyhow::bail!("Unknown filesystem: {}", other), } }