summaryrefslogtreecommitdiff
path: root/image
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2023-09-05 21:54:11 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2023-09-05 21:54:11 -0500
commitef19fcc0b76db6fd6e639127ab3f6b57a002d710 (patch)
treee9369c429fdf92d5a0d90159b5a883381178ec63 /image
parent12d039fcc78cb917176ea3080a6a94c883cf9e3f (diff)
downloadhorizon-ef19fcc0b76db6fd6e639127ab3f6b57a002d710.tar.gz
horizon-ef19fcc0b76db6fd6e639127ab3f6b57a002d710.tar.bz2
horizon-ef19fcc0b76db6fd6e639127ab3f6b57a002d710.tar.xz
horizon-ef19fcc0b76db6fd6e639127ab3f6b57a002d710.zip
image: ISO backend: Probe xorriso before starting
Ensures that the user's time isn't wasted if xorriso is missing.
Diffstat (limited to 'image')
-rw-r--r--image/backends/iso.cc6
1 files changed, 6 insertions, 0 deletions
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);