Commits

Michał Górny  committed eca88d5

Support removing initramfs as well.

  • Participants
  • Parent commits 67c8a2f

Comments (0)

Files changed (1)

File ecleankernel/kernel.py

 	def build(self):
 		pass
 
+	@OnceProperty
+	def initramfs(self):
+		pass
+
 	@property
 	def parts(self):
 		for k in dir(self):
 		del self.vmlinuz
 		del self.systemmap
 		del self.config
+		del self.initramfs
 		del self.modules
 		del self.build
 
 	def check_writable(self):
 		for path in (self.vmlinuz, self.systemmap, self.config,
-				self.modules, self.build):
+				self.initramfs, self.modules, self.build):
 			if path and not os.access(path, os.W_OK):
 				raise OSError('%s not writable, refusing to proceed' % path)
 
 				'V' if self.vmlinuz else ' ',
 				'S' if self.systemmap else ' ',
 				'C' if self.config else ' ',
+				'I' if self.initramfs else ' ',
 				'M' if self.modules else ' ',
 				'B' if self.build else ' ')
 
 		('vmlinuz', '/boot/bzImage-'),
 		('systemmap', '/boot/System.map-'),
 		('config', '/boot/config-'),
+		('initramfs', '/boot/initramfs-'),
+		('initramfs', '/boot/initrd-'),
 		('modules', '/lib/modules/')
 	)