This commit is contained in:
Ian Gulliver
2016-05-10 19:12:51 +00:00
parent 1ab83d4a6b
commit 927b851b06

View File

@@ -32,6 +32,7 @@ class GrubUpdater(object):
def Update(self):
grub_dir = os.path.join(self._boot_dir, 'grub')
# TODO: clean up if we fail here
with tempfile.NamedTemporaryFile('w', dir=grub_dir, delete=False) as fh:
current = os.readlink(os.path.join(self._image_dir, 'current'))