summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2023-10-05 06:46:33 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2023-10-05 06:46:33 -0500
commit0c2089d40a09db1d9c4f60bf88937288a3733115 (patch)
tree6acc19e6e325156a9e1a711aaa6c95183a8fd97c
parent11f8a8fe55d3ab488240908d4b5b833189d8bc01 (diff)
downloadhorizon-0c2089d40a09db1d9c4f60bf88937288a3733115.tar.gz
horizon-0c2089d40a09db1d9c4f60bf88937288a3733115.tar.bz2
horizon-0c2089d40a09db1d9c4f60bf88937288a3733115.tar.xz
horizon-0c2089d40a09db1d9c4f60bf88937288a3733115.zip
image: ISO backend: Probe GRUB version as well
Fixes: #335
-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 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);