From dc9cd22836cbe3fb541b2c46107a48c6bf76b84f Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 9 Dec 2023 21:54:25 +0900 Subject: [PATCH] Fix functionality of mountconfig module Signed-off-by: Michele Calgaro (cherry picked from commit 933f385f5dd09a2f0d167f015cec17d314437ec2) --- mountconfig/MicroHAL.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mountconfig/MicroHAL.py b/mountconfig/MicroHAL.py index 07a3280..a7b02ae 100755 --- a/mountconfig/MicroHAL.py +++ b/mountconfig/MicroHAL.py @@ -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([b"/sbin/modprobe",module]) + retval, msg = SimpleCommandRunner().run([b"/sbin/modprobe",module.encode('utf-8')]) if retval > 0: print(msg) print("Couldn't load driver " + module + " for filesystem " + fs)