Commits

Michał Górny  committed c9919ea

Abort when no vmlinuz found (/boot ain't mounted?).

  • Participants
  • Parent commits 8f49412

Comments (0)

Files changed (1)

File ecleankernel/process.py

 	out = RemovedKernelDict()
 	for k in remove_stray(kernels):
 		out.add(k, 'vmlinuz does not exist')
+	if len(out) == len(kernels):
+		raise SystemError('No vmlinuz found. This seems ridiculous, aborting.')
 
 	current = os.uname()[2]