diff --git a/sonic_installer/bootloader/aboot.py b/sonic_installer/bootloader/aboot.py index 9d1286294847..3bf3e297e732 100644 --- a/sonic_installer/bootloader/aboot.py +++ b/sonic_installer/bootloader/aboot.py @@ -156,7 +156,7 @@ def getCert(cls, swiFile): return None with swi.open(sigInfo, 'r') as sigFile: for line in sigFile: - data = line.split(':') + data = line.decode('utf8').split(':') if len(data) == 2: if data[0] == ISSUERCERT: try: @@ -197,7 +197,7 @@ def get_rootfs_path(self, image_path): swipath = os.path.join(image_path, DEFAULT_SWI_IMAGE) offset = self._get_swi_file_offset(swipath, ROOTFS_NAME) - loopdev = subprocess.check_output(['losetup', '-f']).rstrip() + loopdev = subprocess.check_output(['losetup', '-f']).decode('utf8').rstrip() try: run_command_or_raise(['losetup', '-o', str(offset), loopdev, swipath])