From: Ulrich Teichert <ulrich.teichert@kumkeo.de>
To: "isar-users@googlegroups.com" <isar-users@googlegroups.com>
Cc: Ulrich Teichert <ulrich.teichert@kumkeo.de>
Subject: [PATCH] Add a check for "None" to raise a WicError
Date: Tue, 14 Jul 2026 11:22:56 +0000 [thread overview]
Message-ID: <e9f97868891d431f87bed6454e10ef7f@kumkeo.de> (raw)
Add a check for "None" to raise a WicError because get_bitbake_var
may return "None" if the variable is not available, which
would result in an exception inside os.path.isdir and not to the WicError
exception as indented.
Signed-off-by: Ulrich Teichert <ulrich.teichert@kumkeo.de>
---
scripts/lib/wic/plugins/source/rootfs.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/lib/wic/plugins/source/rootfs.py b/scripts/lib/wic/plugins/source/rootfs.py
index e29f3a4c..977ac0d3 100644
--- a/scripts/lib/wic/plugins/source/rootfs.py
+++ b/scripts/lib/wic/plugins/source/rootfs.py
@@ -54,7 +54,7 @@ class RootfsPlugin(SourcePlugin):
return os.path.realpath(rootfs_dir)
image_rootfs_dir = get_bitbake_var("IMAGE_ROOTFS", rootfs_dir)
- if not os.path.isdir(image_rootfs_dir):
+ if image_rootfs_dir == None or not os.path.isdir(image_rootfs_dir):
raise WicError("No valid artifact IMAGE_ROOTFS from image "
"named %s has been found at %s, exiting." %
(rootfs_dir, image_rootfs_dir))
--
2.47.3
Mit freundlichen Grüßen / Best regards
Dipl.-Inform. Ulrich Teichert
Senior Software Engineer
Phone +49 431 375938-0
_____________________________________
Im Zuge der Weiterentwicklung unserer Unternehmensstruktur stellen wir die gesamte E-Mail-Kommunikation der e.bs group auf eine neue, einheitliche Domain @ebs-group.io um. Dies geschieht sukzessive. Ab sofort erhalten Sie daher für die umgestellten Kontakte auch E-Mails unter der Domain @ebs-group.io. Wir bitten diese Domain in Ihr Whitelisting für E-Mails oder z.B. auch MS-Teams mit aufzunehmen. E-Mails, welche Sie an die Ihnen bekannten @kumkeo.de Adressen senden, werden weiterhin bei den vorgesehenen Empfängern eingehen.
_____________________________________
e.bs kumkeo GmbH
Am Kiel-Kanal 1
24106 Kiel, Deutschland
ebs-group.io
Rechnungen bitte an e.bs kumkeo GmbH, Heidenkampsweg 82a, 20097 Hamburg
Geschäftsführer Michael Leitner, Günter Hagspiel
Registergericht Amtsgericht Hamburg
Registernummer HRB 187712
USt-Idnr. DE449906070
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/e9f97868891d431f87bed6454e10ef7f%40kumkeo.de.
reply other threads:[~2026-07-15 10:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=e9f97868891d431f87bed6454e10ef7f@kumkeo.de \
--to=ulrich.teichert@kumkeo.de \
--cc=isar-users@googlegroups.com \
/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