mirror of
https://git.yoctoproject.org/poky
synced 2026-04-26 00:32:12 +02:00
overlayfs: add debug information
(From OE-Core rev: ce55a411d7dd1189ce9a849081e52cb9c5ebb002) Signed-off-by: Vyacheslav Yurkov <uvv.mail@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
39f3274dd5
commit
4d2d216803
@@ -92,9 +92,11 @@ WantedBy=local-fs.target
|
||||
'LOWERDIR': lower,
|
||||
}
|
||||
|
||||
bb.debug(1, "Generate systemd unit %s" % mountUnitName(lower))
|
||||
with open(os.path.join(d.getVar('WORKDIR'), mountUnitName(lower)), 'w') as f:
|
||||
f.write(MountUnitTemplate.format(**args))
|
||||
|
||||
bb.debug(1, "Generate helper systemd unit %s" % helperUnitName(lower))
|
||||
with open(os.path.join(d.getVar('WORKDIR'), helperUnitName(lower)), 'w') as f:
|
||||
f.write(CreateDirsUnitTemplate.format(**args))
|
||||
|
||||
@@ -105,13 +107,17 @@ WantedBy=local-fs.target
|
||||
'PN': d.getVar('PN')
|
||||
}
|
||||
|
||||
bb.debug(1, "Generate systemd unit with all overlays %s" % allOverlaysUnitName(d))
|
||||
with open(os.path.join(d.getVar('WORKDIR'), allOverlaysUnitName(d)), 'w') as f:
|
||||
f.write(AllOverlaysTemplate.format(**args))
|
||||
|
||||
mountUnitList = []
|
||||
overlayMountPoints = d.getVarFlags("OVERLAYFS_MOUNT_POINT")
|
||||
for mountPoint in overlayMountPoints:
|
||||
bb.debug(1, "Process variable flag %s" % mountPoint)
|
||||
for lower in d.getVarFlag('OVERLAYFS_WRITABLE_PATHS', mountPoint).split():
|
||||
bb.debug(1, "Prepare mount unit for %s with data mount point %s" %
|
||||
(lower, d.getVarFlag('OVERLAYFS_MOUNT_POINT', mountPoint)))
|
||||
prepareUnits(d.getVarFlag('OVERLAYFS_MOUNT_POINT', mountPoint), lower)
|
||||
mountUnitList.append(mountUnitName(lower))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user