diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-01-28 21:28:52 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-01-29 00:00:40 +0900 |
commit | cf571297f52ad4a5e5843555d9c016d526f03c43 (patch) | |
tree | 7e9eb123a08b935d382ac194a9a1f9e666ee09ee /mountconfig/MicroHAL.py | |
parent | 00acd92ff96bd6d3bb3136aa6d6b37314b3ad623 (diff) | |
download | tde-guidance-cf571297f52ad4a5e5843555d9c016d526f03c43.tar.gz tde-guidance-cf571297f52ad4a5e5843555d9c016d526f03c43.zip |
Fix functionality with python 3.r14.1.0
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'mountconfig/MicroHAL.py')
-rwxr-xr-x | mountconfig/MicroHAL.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mountconfig/MicroHAL.py b/mountconfig/MicroHAL.py index 3d6fce5..07a3280 100755 --- a/mountconfig/MicroHAL.py +++ b/mountconfig/MicroHAL.py @@ -324,7 +324,7 @@ class MicroHAL__(object): if proc not in self.getSupportedFileSystems(): # The filesystem is not supported by the running kernel, # but it might be built as module, so we try to load that. - retval, msg = SimpleCommandRunner().run(["/sbin/modprobe",module]) + retval, msg = SimpleCommandRunner().run([b"/sbin/modprobe",module]) if retval > 0: print(msg) print("Couldn't load driver " + module + " for filesystem " + fs) @@ -605,8 +605,8 @@ class MicroHAL(object): if self.devices is None: self.devices = [] - retval, msg = SimpleCommandRunner().run(["/usr/bin/lshal"]) - if retval > 0: + retval, msg = SimpleCommandRunner().run([b"/usr/bin/lshal"]) + if retval is None or retval > 0: return [] partition_to_uid = {} @@ -817,7 +817,7 @@ class MicroHAL(object): if proc not in self.getSupportedFileSystems(): # The filesystem is not supported by the running kernel, # but it might be built as module, so we try to load that. - retval, msg = SimpleCommandRunner().run(["/sbin/modprobe",module]) + retval, msg = SimpleCommandRunner().run([b"/sbin/modprobe",module]) if retval > 0: print(msg) print("Couldn't load driver " + module + " for filesystem " + fs) |