Make vigil work on other distributions. (fedora, debian, archlinux)

- Now using python3.4 on debian, and python3.5 elsewhere.
 - Added test-distributions script that checks that
   install-dependencies works on different distributions.
This commit is contained in:
Andrew Hamilton 2017-05-17 16:46:54 +01:00
parent 5b41471a47
commit 5b08029d0b
18 changed files with 206 additions and 45 deletions

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python3.5
#!/usr/bin/env python3
# Copyright (C) 2017 Andrew Hamilton. All rights reserved.
# Licensed under the Artistic License 2.0.
@ -51,7 +51,7 @@ def _parse_proc_mounts():
def _find_mounts():
all_mounts = set(part[1] for part in _parse_proc_mounts())
mount_points = {"/", "/usr", "/bin", "/etc", "/lib", "/dev", "/home",
"/boot", "/opt", "/run", "/root", "/var"}
"/boot", "/opt", "/run", "/root", "/var", "/vigil"}
return all_mounts.intersection(mount_points)