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:])