From: Steve Sakoman <steve@sakoman.com>
To: openembedded-core@lists.openembedded.org
Subject: [OE-core][kirkstone 10/27] classes/fs-uuid: Fix command output decoding issue
Date: Sun, 12 Feb 2023 11:10:26 -1000 [thread overview]
Message-ID: <ffa1de16fa82fbe7dfbed4c5ae0fc4e6d51e7ff3.1676236110.git.steve@sakoman.com> (raw)
In-Reply-To: <cover.1676236110.git.steve@sakoman.com>
From: Pawel Zalewski <pzalewski@thegoodpenguin.co.uk>
The default return value from subprocess.check_output is an encoded byte.
The applied fix will decode the value to a string.
Signed-off-by: Pawel Zalewski <pzalewski@thegoodpenguin.co.uk>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
(cherry picked from commit 046769fa952a511865c416b80d10af6287147fb7)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
---
meta/classes/fs-uuid.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/classes/fs-uuid.bbclass b/meta/classes/fs-uuid.bbclass
index 9b53dfba7a..731ea575bd 100644
--- a/meta/classes/fs-uuid.bbclass
+++ b/meta/classes/fs-uuid.bbclass
@@ -4,7 +4,7 @@
def get_rootfs_uuid(d):
import subprocess
rootfs = d.getVar('ROOTFS')
- output = subprocess.check_output(['tune2fs', '-l', rootfs])
+ output = subprocess.check_output(['tune2fs', '-l', rootfs], text=True)
for line in output.split('\n'):
if line.startswith('Filesystem UUID:'):
uuid = line.split()[-1]
--
2.34.1
next prev parent reply other threads:[~2023-02-12 21:11 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-12 21:10 [OE-core][kirkstone 00/27] Patch review Steve Sakoman
2023-02-12 21:10 ` [OE-core][kirkstone 01/27] python3-certifi: fix for CVE-2022-23491 Steve Sakoman
2023-02-12 21:10 ` [OE-core][kirkstone 02/27] python3-pytest: depend on python3-tomli instead of python3-toml Steve Sakoman
2023-02-12 21:10 ` [OE-core][kirkstone 03/27] git: upgrade to 2.35.6 Steve Sakoman
2023-02-12 21:10 ` [OE-core][kirkstone 04/27] git: ignore CVE-2022-41953 Steve Sakoman
2023-02-12 21:10 ` [OE-core][kirkstone 05/27] linux-yocto/5.15: update to v5.15.89 Steve Sakoman
2023-02-12 21:10 ` [OE-core][kirkstone 06/27] linux-yocto/5.15: update to v5.15.91 Steve Sakoman
2023-02-12 21:10 ` [OE-core][kirkstone 07/27] vulkan-samples: branch rename master -> main Steve Sakoman
2023-02-12 21:10 ` [OE-core][kirkstone 08/27] buildtools-tarball: set pkg-config search path Steve Sakoman
2023-02-12 21:10 ` [OE-core][kirkstone 09/27] kernel/linux-kernel-base: Fix kernel build artefact determinism issues Steve Sakoman
2023-02-12 21:10 ` Steve Sakoman [this message]
2023-02-12 21:10 ` [OE-core][kirkstone 12/27] make-mod-scripts: Ensure kernel build output is deterministic Steve Sakoman
2023-02-12 21:10 ` [OE-core][kirkstone 13/27] scons: Pass MAXLINELENGTH to scons invocation Steve Sakoman
2023-02-12 21:10 ` [OE-core][kirkstone 14/27] scons.bbclass: Make MAXLINELENGTH overridable Steve Sakoman
2023-02-12 21:10 ` [OE-core][kirkstone 15/27] oeqa/qemurunner: do not use Popen.poll() when terminating runqemu with a signal Steve Sakoman
2023-02-12 21:10 ` [OE-core][kirkstone 16/27] sdkext/cases/devtool: pass a logger to HTTPService Steve Sakoman
2023-02-12 21:10 ` [OE-core][kirkstone 17/27] httpserver: add error handler that write to the logger Steve Sakoman
2023-02-12 21:10 ` [OE-core][kirkstone 18/27] glslang: branch rename master -> main Steve Sakoman
2023-02-12 21:10 ` [OE-core][kirkstone 19/27] meta: remove True option to getVar and getVarFlag calls (again) Steve Sakoman
2023-02-12 21:10 ` [OE-core][kirkstone 20/27] apt: fix do_package_qa failure Steve Sakoman
2023-02-12 21:10 ` [OE-core][kirkstone 21/27] oeqa/selftest/locales: Add selftest for locale generation/presence Steve Sakoman
2023-02-12 21:10 ` [OE-core][kirkstone 22/27] testimage: Fix error message to reflect new syntax Steve Sakoman
2023-02-12 21:10 ` [OE-core][kirkstone 23/27] libc-locale: Fix on target locale generation Steve Sakoman
2023-02-12 21:10 ` [OE-core][kirkstone 24/27] bootchart2: Fix usrmerge support Steve Sakoman
2023-02-12 21:10 ` [OE-core][kirkstone 25/27] recipe_sanity: fix old override syntax Steve Sakoman
2023-02-12 21:10 ` [OE-core][kirkstone 26/27] lsof: " Steve Sakoman
2023-02-12 21:10 ` [OE-core][kirkstone 27/27] oeqa context.py: fix --target-ip comment to include ssh port number Steve Sakoman
[not found] ` <d54e9eaff911fe834e3290a40924c7b3ca066216.1676236110.git.steve@sakoman.com>
2023-02-12 21:16 ` Fwd: [OE-core][kirkstone 11/27] gdk-pixbuf: do not use tools from gdk-pixbuf-native when building tests Steve Sakoman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ffa1de16fa82fbe7dfbed4c5ae0fc4e6d51e7ff3.1676236110.git.steve@sakoman.com \
--to=steve@sakoman.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox