Remove hfsplus-tools dependency (#818913)
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.
This commit is contained in:
parent
7ba6af6d29
commit
a9e5630322
@ -23,7 +23,6 @@ Requires: isomd5sum
|
||||
Requires: glibc
|
||||
Requires: util-linux
|
||||
Requires: dosfstools
|
||||
Requires: hfsplus-tools
|
||||
Requires: genisoimage
|
||||
Requires: parted
|
||||
Requires: gzip
|
||||
|
@ -134,6 +134,13 @@ class Lorax(BaseLoraxClass):
|
||||
|
||||
assert self._configured
|
||||
|
||||
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):
|
||||
|
Loading…
Reference in New Issue
Block a user