summaryrefslogtreecommitdiffstats
path: root/mountconfig/MicroHAL.py
diff options
context:
space:
mode:
Diffstat (limited to 'mountconfig/MicroHAL.py')
-rwxr-xr-xmountconfig/MicroHAL.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/mountconfig/MicroHAL.py b/mountconfig/MicroHAL.py
index 9ce8b83..9a913fa 100755
--- a/mountconfig/MicroHAL.py
+++ b/mountconfig/MicroHAL.py
@@ -669,6 +669,10 @@ class MicroHAL(object):
if u"volume.label" in parsed_hash:
new_device.label = self._parseString(parsed_hash[u"volume.label"][0])
+ # If HAL returns label beginning with '#', it usually means that the
+ # actual label contains an Unix path. So we replace '#' with '/'.
+ if len(new_device.label) and new_device.label[0]=='%':
+ new_device.label = new_device.label.replace('%', '/')
if u"volume.size" in parsed_hash:
size = parsed_hash[u"volume.size"][0]