Commits

Michał Górny committed 70af8b9

grub: pass relative kernel path to os.path.join().

Comments (0)

Files changed (1)

ecleankernel/grub.py

 					print('**** regexp matched path %s' % path)
 					print('     from line: %s' % m.group(0))
 				if os.path.relpath(path, '/boot').startswith('..'):
-					path = os.path.join('/boot', path)
+					path = os.path.join('/boot', os.path.relpath(path, '/'))
 					print('***** appending /boot, path now: %s' % path)
 				yield path
 		finally: