@ -1002,7 +1002,8 @@ class Builder(Update):
for fn in listDirectory(boot_dn, fullPath=True):
if fn not in ("vmlinuz", "initrd"):
try:
os.unlink(fn)
if not path.isdir(fn):
except (IOError, OSError) as e:
self.printERROR(str(e))
raise BuilderError(