Remove check for required commands
Not all architectures need all the commands, so the check does not work very well.
This commit is contained in:
parent
00302d9434
commit
4f57d574a8
@ -173,13 +173,6 @@ class Lorax(BaseLoraxClass):
|
||||
# do we have all lorax required commands?
|
||||
self.lcmds = constants.LoraxRequiredCommands()
|
||||
|
||||
"""
|
||||
missing = self.lcmds.get_missing()
|
||||
if missing:
|
||||
logger.critical("missing required command: {0}".format(missing))
|
||||
sys.exit(1)
|
||||
"""
|
||||
|
||||
# do we have a proper yum base object?
|
||||
logger.info("checking yum base object")
|
||||
if not isinstance(ybo, yum.YumBase):
|
||||
|
@ -59,17 +59,6 @@ class LoraxRequiredCommands(dict):
|
||||
def __getattr__(self, attr):
|
||||
return self[attr]
|
||||
|
||||
def get_missing(self):
|
||||
missing = []
|
||||
for cmd in self.values():
|
||||
found = [joinpaths(path, cmd) for path in self.__path
|
||||
if os.path.exists(joinpaths(path, cmd))]
|
||||
|
||||
if not found:
|
||||
missing.append(cmd)
|
||||
|
||||
return missing
|
||||
|
||||
|
||||
# kernel types
|
||||
K_NORMAL = 0
|
||||
|
Loading…
Reference in New Issue
Block a user