Add x-gvfs-hide option

This commit is contained in:
Fierelier 2023-03-30 16:38:00 +02:00
parent c77ee6f4bc
commit 904134f1ec

View File

@ -26,7 +26,7 @@ def callRtn(cmd,*args,**kwargs):
def mountChroot(d): def mountChroot(d):
for mount in mounts: for mount in mounts:
if callRtn(["mountpoint","-q",p(d,mount)]) == 0: continue 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): def umountChroot(d):
for mount in reversed(mounts): for mount in reversed(mounts):
@ -41,4 +41,4 @@ if sys.argv[1] == "-u":
umountChroot(sys.argv[2]) umountChroot(sys.argv[2])
sys.exit(0) sys.exit(0)
chroot(sys.argv[1],sys.argv[2:]) chroot(sys.argv[1],sys.argv[2:])