Minor pathing fixes

This commit is contained in:
Ian Gulliver
2016-05-17 16:11:38 -07:00
parent 1f406af2ee
commit d7971547ce
2 changed files with 4 additions and 6 deletions

View File

@@ -14,7 +14,7 @@ class GrubUpdater(object):
self._image_dir = image_dir
self._boot_dir = boot_dir
assert self._image_dir.startswith(self._boot_dir)
assert self._image_dir.startswith(self._boot_dir), (self._image_dir, self._boot_dir)
self._image_path = '/' + os.path.relpath(self._image_dir, self._boot_dir)