diff options
Diffstat (limited to 'image')
-rw-r--r-- | image/backends/iso.cc | 6 |
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); |