summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin/smolt/files/smolt-1.4.3-hwdata-dir.patch')
-rw-r--r--app-admin/smolt/files/smolt-1.4.3-hwdata-dir.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/app-admin/smolt/files/smolt-1.4.3-hwdata-dir.patch b/app-admin/smolt/files/smolt-1.4.3-hwdata-dir.patch
new file mode 100644
index 000000000000..1820f8207a73
--- /dev/null
+++ b/app-admin/smolt/files/smolt-1.4.3-hwdata-dir.patch
@@ -0,0 +1,22 @@
+--- a/client/config.py
++++ b/client/config.py
+@@ -14,6 +14,7 @@ PUB_UUID = "/etc/smolt/pub-uuid"
+ PUB_UUID = "/etc/smolt/pub-uuid"
+ #UUID_DB = "/etc/smolt/uuiddb.cfg"
+ #ADMIN_TOKEN = "/etc/sysconfig/smolt-token"
++#HWDATA_DIR = "/usr/share/hwdata"
+
+
+ #These are the defaults taken from the source code.
+--- a/client/hwdata.py
++++ b/client/hwdata.py
+@@ -20,7 +20,8 @@ class DeviceMap:
+ self.vendors['usb'] = self.device_map('usb')
+
+ def device_map(self, bus='pci'):
+- fn = "/usr/share/hwdata/%s.ids" % bus
++ from smolt import get_config_attr
++ fn = "%s/%s.ids" % (get_config_attr("HWDATA_DIR", "/usr/share/hwdata"), bus)
+ fo = open(fn, 'r')
+ vendors = {}
+ curvendor = None