util/mnt: rename var to avoid future clash

Rename the local `mount` variable to `mnt` so that we can have
a top level `mount` function.
This commit is contained in:
Christian Kellner 2022-08-09 18:12:10 +02:00 committed by Tom Gundersen
parent b49f3f91f9
commit a43ea66be2

View file

@ -28,8 +28,8 @@ class MountGuard(contextlib.AbstractContextManager):
def umount(self):
while self.mounts:
mount = self.mounts.pop() # FILO: get the last mount
target = mount["target"]
mnt = self.mounts.pop() # FILO: get the last mount
target = mnt["target"]
# The sync should in theory not be needed but in rare
# cases `target is busy` error has been spotted.
# Calling `sync` does not hurt so we keep it for now.