From 904134f1ecf849fca869d417e6288b6dcc96a5a5 Mon Sep 17 00:00:00 2001 From: Fierelier Date: Thu, 30 Mar 2023 16:38:00 +0200 Subject: [PATCH] Add x-gvfs-hide option --- chroot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chroot.py b/chroot.py index 1554112..7f61b6b 100755 --- a/chroot.py +++ b/chroot.py @@ -26,7 +26,7 @@ def callRtn(cmd,*args,**kwargs): def mountChroot(d): for mount in mounts: if callRtn(["mountpoint","-q",p(d,mount)]) == 0: continue - call(["mount","--bind",os.path.sep + mount,p(d,mount)]) + call(["mount","-o","x-gvfs-hide","--bind",os.path.sep + mount,p(d,mount)]) def umountChroot(d): for mount in reversed(mounts): @@ -41,4 +41,4 @@ if sys.argv[1] == "-u": umountChroot(sys.argv[2]) sys.exit(0) -chroot(sys.argv[1],sys.argv[2:]) \ No newline at end of file +chroot(sys.argv[1],sys.argv[2:])