From 09c4f6f9dee48db37c8a7fce2982bbdfe8735a07 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Tue, 24 May 2016 15:54:09 +0200 Subject: [PATCH] mount: initialize correctly 'removexattr' Signed-off-by: Giuseppe Scrivano Closes: #390 Approved by: baude --- Atomic/mount.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Atomic/mount.py b/Atomic/mount.py index e1ccc31..47e49ba 100644 --- a/Atomic/mount.py +++ b/Atomic/mount.py @@ -631,7 +631,7 @@ removexattr = None def _initxattr(): # Python 3 has support for extended attributes in the os module, while # Python 2 needs the xattr library. Detect if any is available. - global setxattr, getxattr, removeattr + global setxattr, getxattr, removexattr module = None if setxattr: return @@ -679,7 +679,7 @@ class OSTreeMount(Mount): return self.has_container(_id) or self.has_image(_id) def mount(self, identifier, options=[]): - global setxattr, getxattr, removeattr + global setxattr, getxattr, removexattr options = ['remount', 'ro', 'nosuid', 'nodev'] if self.has_container(identifier): typ = "container" @@ -699,7 +699,7 @@ class OSTreeMount(Mount): return True def unmount(self, path=None): - global setxattr, getxattr, removeattr + global setxattr, getxattr, removexeattr typ = None if not self.mountpoint: return False