Skip to content

Commit

Permalink
fix: don't cleanup chroot until after all steps are done
Browse files Browse the repository at this point in the history
  • Loading branch information
lleyton committed May 9, 2024
1 parent 134f920 commit bdc13ca
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -761,18 +761,17 @@ impl ImageBuilder for IsoBuilder {

phase!("copy-live": self.bootloader.copy_liveos(manifest, chroot));

phase!("iso": self.xorriso(chroot, &image, manifest));

phase!("bootloader": self.bootloader.install(&image));

// Reduce storage overhead by removing the original chroot
// However, we'll keep an env flag to keep the chroot for debugging purposes

if env_flag!("KATSU_KEEP_CHROOT").is_none() {
info!("Removing chroot");
fs::remove_dir_all(chroot)?;
}

phase!("iso": self.xorriso(chroot, &image, manifest));

phase!("bootloader": self.bootloader.install(&image));

Ok(())
}
}
Expand Down

0 comments on commit bdc13ca

Please sign in to comment.