Skip to content

Commit

Permalink
clean up dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
korewaChino committed Oct 10, 2024
1 parent 313c6c2 commit 5fdc1e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!()
}
}
Expand Down Expand Up @@ -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)?;
Expand Down
2 changes: 1 addition & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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:#?}");
Expand Down

0 comments on commit 5fdc1e6

Please sign in to comment.