runqemu: fix special characters bug
PATCH 1/1 runqemu: fix special characters bug
From: Libo Chen <[email protected]>
Fix the following bug for runqemu with a file path which contains vmlinux characters.
runqemu - ERROR - wic doesn't need kernel
--- scripts/runqemu | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
scripts/runqemu +4 -3
@@ -368,12 +368,13 @@ class BaseConfig(object): - Check whether it is an NFS dir - Check whether it is an OVMF flash file """ + n = os.path.basename(p) if p.endswith('.qemuboot.conf'): self.qemuboot = p self.qbconfload = True - elif re.search('\\.bin$', p) or re.search('bzImage', p) or \ - re.search('zImage', p) or re.search('vmlinux', p) or \ - re.search('fitImage', p) or re.search('uImage', p): + elif re.search('\\.bin$', n) or re.search('bzImage', n) or \ + re.search('zImage', n) or re.search('vmlinux', n) or \ + re.search('fitImage', n) or re.search('uImage', n): self.kernel = p elif os.path.isfile(p) and ('-image-' in os.path.basename(p) or '.rootfs.' in os.path.basename(p)): self.rootfs = p
Signature · 1 line
2.25.1
Quoted 2 lines · Libo (CN) via lists.openembedded.org
Fix the following bug for runqemu with a file path which contains vmlinux characters.
What are vmlinux characters? Can you show an example, so it's easier to understand exactly what issue the patch is fixing.
Alex
Alex,
Thanks for your comments. I sent V2 patch for review with more clear commit description.
Libo
Quoted 21 lines
-----Original Message-----
From: Alexander Kanavin <[email protected]>
Sent: Friday, August 1, 2025 8:33 PM
To: Chen, Libo (CN) <[email protected]>
Cc: [email protected]
Subject: Re: [OE-core] [PATCH] runqemu: fix special characters bugCAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.Quoted 2 lines · Libo (CN) via lists.openembedded.org
Fix the following bug for runqemu with a file path which contains vmlinux characters.
What are vmlinux characters? Can you show an example, so it's easier to understand exactly what issue the patch is fixing.
Alex