summaryrefslogtreecommitdiffstats
path: root/src/utils/probe.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/probe.py')
-rw-r--r--src/utils/probe.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/utils/probe.py b/src/utils/probe.py
index d14146c..f1bdc27 100644
--- a/src/utils/probe.py
+++ b/src/utils/probe.py
@@ -62,6 +62,15 @@ def getwindowsversion(winreghives):
return 'Microsoft Windows'
+def cache_probe():
+ """
+ Runs 'blkid -L CACHE' and returns stripped stdout
+ """
+ proc_blkid = subprocess.run(['blkid', '-L', 'CACHE'],
+ stdout=subprocess.PIPE)
+ stdout = proc_blkid.stdout.decode().strip()
+ return stdout
+
def os_probe(mountpoint):
"""
Probes mountpoint for typical OS dependant files.