[elbe-devel] [PATCH v2 13/27] fstab: fix losetup returning bytes instead of str

Torben Hohn torben.hohn at linutronix.de
Thu Sep 24 16:56:10 CEST 2020


get_command_out() returns bytes

Convert to decode() the bytes.

Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
 elbepack/fstab.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/elbepack/fstab.py b/elbepack/fstab.py
index 0ad6a743f..f3e0f5757 100644
--- a/elbepack/fstab.py
+++ b/elbepack/fstab.py
@@ -151,7 +151,7 @@ class fstabentry(object):
             else:
                 break
 
-        return loopdev.rstrip('\n')
+        return loopdev.decode().rstrip('\n')
 
     def tuning(self, loopdev):
         if self.tune:
-- 
2.20.1



More information about the elbe-devel mailing list