diff --git a/src/builder.rs b/src/builder.rs index c4eefe1..7cda868 100644 --- a/src/builder.rs +++ b/src/builder.rs @@ -273,7 +273,7 @@ impl Bootloader { Ok(()) } - pub fn cp_grub_bios(&self, chroot: &Path) -> Result<()> { + pub fn cp_grub_bios(&self, _chroot: &Path) -> Result<()> { todo!() } } @@ -521,7 +521,7 @@ impl ImageBuilder for DiskImageBuilder { let (ldp, hdl) = loopdev_with_file(sparse_path)?; // Partition disk - disk.apply(&ldp, arch, uefi)?; + disk.apply(&ldp, arch)?; // Mount partitions to chroot disk.mount_to_chroot(&ldp, chroot)?; diff --git a/src/config.rs b/src/config.rs index 660cd16..b5df9a5 100644 --- a/src/config.rs +++ b/src/config.rs @@ -437,7 +437,7 @@ impl PartitionLayout { Ok(crate::tpl!("fstab.tera" => { PREPEND, entries })) } - pub fn apply(&self, disk: &PathBuf, target_arch: &str, uefi: bool) -> Result<()> { + pub fn apply(&self, disk: &PathBuf, target_arch: &str) -> Result<()> { // This is a destructive operation, so we need to make sure we don't accidentally wipe the wrong disk info!("Applying partition layout to disk: {disk:#?}");