From 0c2089d40a09db1d9c4f60bf88937288a3733115 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Thu, 5 Oct 2023 06:46:33 -0500 Subject: image: ISO backend: Probe GRUB version as well Fixes: #335 --- 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 d6400d2..8ef4503 100644 --- a/image/backends/iso.cc +++ b/image/backends/iso.cc @@ -189,6 +189,12 @@ public: return COMMAND_MISSING; } + output_info("CD backend", "probing grub version..."); + if(run_command("grub-mkimage", {"--version"}) != 0) { + output_error("CD backend", "grub-mkimage 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