mirror of
https://github.com/swizzin/swizzin_dashboard.git
synced 2024-11-10 08:52:34 +08:00
remove bind mounts
This commit is contained in:
parent
02f1739e59
commit
627d7ce0a8
1 changed files with 5 additions and 0 deletions
|
@ -50,6 +50,11 @@ def get_mounts():
|
|||
continue
|
||||
else:
|
||||
mounts.append(fields[1])
|
||||
with open("/etc/fstab") as fstab:
|
||||
for line in fstab:
|
||||
fields = line.strip().split()
|
||||
if "bind" in str(fields):
|
||||
mounts.remove(fields[1])
|
||||
return mounts
|
||||
|
||||
def generate_page_list(user):
|
||||
|
|
Loading…
Reference in a new issue