From 5c0c1a0b843b01171143907add60ad0c0054198f Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Wed, 9 Jun 2021 15:48:35 -0700 Subject: [PATCH] livemedia-creator: Check for mkfs.hfsplus mkfs.hfsplus may not be installed so instead of crashing near the end of the install check for it and print a useful error message. Resolves: rhbz#1969743 --- src/sbin/livemedia-creator | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sbin/livemedia-creator b/src/sbin/livemedia-creator index 18348881..541cfc65 100755 --- a/src/sbin/livemedia-creator +++ b/src/sbin/livemedia-creator @@ -145,6 +145,9 @@ def main(): if not os.path.exists(joinpaths(opts.ovmf_path, f)): errors.append("OVMF secure boot firmware file %s is missing from %s" % (f, opts.ovmf_path)) + if opts.domacboot and not os.path.exists("/usr/sbin/mkfs.hfsplus"): + errors.append("mkfs.hfsplus is missing. Install hfsplus-tools, or pass --nomacboot") + if os.getuid() != 0: errors.append("You need to run this as root")