Michał Górny committed 93fffd7

Fix checking writable when parts of kernel don't exist.

  • Participants
  • Parent commits 70af8b9

Comments (0)

Files changed (1)

File ecleankernel/

 	def check_writable(self):
 		for path in (self.vmlinuz, self.systemmap, self.config,
-			if not os.access(path, os.W_OK):
+			if path is not None and not os.access(path, os.W_OK):
 				raise OSError('%s not writable, refusing to proceed' % path)
 	def __repr__(self):