Kaynağa Gözat

Fix fstab processing.

Nashwan Azhari 7 yıl önce
ebeveyn
işleme
3d29d21e60
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      coriolis/osmorphing/base.py

+ 1 - 1
coriolis/osmorphing/base.py

@@ -189,7 +189,7 @@ class BaseLinuxOSMorphingTools(BaseOSMorphingTools):
     def _replace_fstab_entries_device_prefix(
             self, current_prefix="/dev/sd", new_prefix="/dev/sd"):
         fstab_chroot_path = "etc/fstab"
-        fstab_contents = self._read_file(fstab_chroot_path)
+        fstab_contents = self._read_file(fstab_chroot_path).decode()
         LOG.debug("Contents of /%s: %s", fstab_chroot_path, fstab_contents)
         fstab_contents_lines = fstab_contents.split('\n')