anaconda: Do not rely on new-kernel-pkg

Qubes OS does not use grubby, so there is no need to check for the
existence of the new-kernel-pkg executable.
This commit is contained in:
M. Vefa Bicakci 2016-04-10 00:00:00 -04:00
parent c08e51c65b
commit 763c9b3490
No known key found for this signature in database
GPG Key ID: 1DF87CE3B3A5DFAF

View File

@ -531,10 +531,6 @@ class Payload(object):
:returns: None
"""
if not os.path.exists(iutil.getSysroot() + "/usr/sbin/new-kernel-pkg"):
log.error("new-kernel-pkg does not exist - grubby wasn't installed? skipping")
return
for kernel in self.kernelVersionList:
log.info("recreating initrd for %s", kernel)
if not flags.imageInstall: