mirror of
https://git.yoctoproject.org/poky
synced 2026-04-30 12:32:12 +02:00
classes: rootfs-postcommands: avoid exception in overlayfs_qa_check
The overlayfs_qa_check in the rootfs-postcommands class throws an
exception if the overlayfs distro feature is enabled but no global
OVERLAYFS_MOUNT_POINT is specifived.
File: '/home/stefan/dalos-linutronix/poky/meta/classes/rootfs-postcommands.bbclass', lineno: 389, function: overlayfs_qa_check
0385: searchpaths = [oe.path.join(imagepath, d.getVar("sysconfdir"), "systemd", "system"),
0386: oe.path.join(imagepath, d.getVar("systemd_system_unitdir"))]
0387:
0388: allUnitExist = True;
*** 0389: for mountPoint in overlayMountPoints:
0390: path = d.getVarFlag('OVERLAYFS_MOUNT_POINT', mountPoint)
0391: unit = mountUnitName(path)
0392:
0393: if not any(os.path.isfile(oe.path.join(dirpath, unit))
Exception: TypeError: 'NoneType' object is not iterable
(From OE-Core rev: 4396348c24efb1185d68876d3cf6ade90324dee5)
Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
fd2c86b069
commit
4fee926120
@@ -380,7 +380,7 @@ python overlayfs_qa_check() {
|
||||
from oe.overlayfs import mountUnitName
|
||||
|
||||
# this is a dumb check for unit existence, not its validity
|
||||
overlayMountPoints = d.getVarFlags("OVERLAYFS_MOUNT_POINT")
|
||||
overlayMountPoints = d.getVarFlags("OVERLAYFS_MOUNT_POINT") or {}
|
||||
imagepath = d.getVar("IMAGE_ROOTFS")
|
||||
searchpaths = [oe.path.join(imagepath, d.getVar("sysconfdir"), "systemd", "system"),
|
||||
oe.path.join(imagepath, d.getVar("systemd_system_unitdir"))]
|
||||
|
||||
Reference in New Issue
Block a user