From ef19fcc0b76db6fd6e639127ab3f6b57a002d710 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Tue, 5 Sep 2023 21:54:11 -0500 Subject: image: ISO backend: Probe xorriso before starting Ensures that the user's time isn't wasted if xorriso is missing. --- image/backends/iso.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'image/backends') diff --git a/image/backends/iso.cc b/image/backends/iso.cc index 4b27cc8..d6400d2 100644 --- a/image/backends/iso.cc +++ b/image/backends/iso.cc @@ -183,6 +183,12 @@ public: return COMMAND_MISSING; } + output_info("CD backend", "probing xorriso version..."); + if(run_command("xorriso", {"-version"}) != 0) { + output_error("CD backend", "xorriso is not present"); + return COMMAND_MISSING; + } + /* REQ: ISO.1 */ if(fs::exists(this->ir_dir, ec) && opts.find("keep") == opts.end()) { output_info("CD backend", "removing old IR tree", this->ir_dir); -- cgit v1.2.3-70-g09d2