diff --git a/src/builder.rs b/src/builder.rs index da9ec1b..5ef7e32 100644 --- a/src/builder.rs +++ b/src/builder.rs @@ -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(()) } }