Mac boot images are optional. Don't require hfsplus-tools
by default, but warn the user that he needs to install them
if he wants to create mac boot images.
---
lorax.spec | 1 -
src/pylorax/__init__.py | 7 +++++++
2 files changed, 7 insertions(+), 1 deletion(-)
+ if domacboot:
+ try:
+ subprocess.check_call("rpm -q hfsplus-tools")
+ except subprocess.CalledProcessError:
+ logger.critical("you need to install hfsplus-tools to create mac images")
+ sys.exit(1)
+
# set up work directory
self.workdir = workdir or tempfile.mkdtemp(prefix="pylorax.work.")
if not os.path.isdir(self.workdir):
--
1.7.9.5
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list