Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/udev/udevadm.py
diff options
context:
space:
mode:
Diffstat (limited to 'archinstall/lib/udev/udevadm.py')
-rw-r--r--archinstall/lib/udev/udevadm.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/archinstall/lib/udev/udevadm.py b/archinstall/lib/udev/udevadm.py
deleted file mode 100644
index 84ec9cfd..00000000
--- a/archinstall/lib/udev/udevadm.py
+++ /dev/null
@@ -1,17 +0,0 @@
-import typing
-import pathlib
-from ..general import SysCommand
-
-def udevadm_info(path :pathlib.Path) -> typing.Dict[str, str]:
- if path.resolve().exists() is False:
- return {}
-
- result = SysCommand(f"udevadm info {path.resolve()}")
- data = {}
- for line in result:
- if b': ' in line and b'=' in line:
- _, obj = line.split(b': ', 1)
- key, value = obj.split(b'=', 1)
- data[key.decode('UTF-8').lower()] = value.decode('UTF-8').strip()
-
- return data \ No newline at end of file