diff options
| -rw-r--r-- | meta/classes/overlayfs.bbclass | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/classes/overlayfs.bbclass b/meta/classes/overlayfs.bbclass index 9397ab44f9..3c0f4dc882 100644 --- a/meta/classes/overlayfs.bbclass +++ b/meta/classes/overlayfs.bbclass | |||
| @@ -92,9 +92,11 @@ WantedBy=local-fs.target | |||
| 92 | 'LOWERDIR': lower, | 92 | 'LOWERDIR': lower, |
| 93 | } | 93 | } |
| 94 | 94 | ||
| 95 | bb.debug(1, "Generate systemd unit %s" % mountUnitName(lower)) | ||
| 95 | with open(os.path.join(d.getVar('WORKDIR'), mountUnitName(lower)), 'w') as f: | 96 | with open(os.path.join(d.getVar('WORKDIR'), mountUnitName(lower)), 'w') as f: |
| 96 | f.write(MountUnitTemplate.format(**args)) | 97 | f.write(MountUnitTemplate.format(**args)) |
| 97 | 98 | ||
| 99 | bb.debug(1, "Generate helper systemd unit %s" % helperUnitName(lower)) | ||
| 98 | with open(os.path.join(d.getVar('WORKDIR'), helperUnitName(lower)), 'w') as f: | 100 | with open(os.path.join(d.getVar('WORKDIR'), helperUnitName(lower)), 'w') as f: |
| 99 | f.write(CreateDirsUnitTemplate.format(**args)) | 101 | f.write(CreateDirsUnitTemplate.format(**args)) |
| 100 | 102 | ||
| @@ -105,13 +107,17 @@ WantedBy=local-fs.target | |||
| 105 | 'PN': d.getVar('PN') | 107 | 'PN': d.getVar('PN') |
| 106 | } | 108 | } |
| 107 | 109 | ||
| 110 | bb.debug(1, "Generate systemd unit with all overlays %s" % allOverlaysUnitName(d)) | ||
| 108 | with open(os.path.join(d.getVar('WORKDIR'), allOverlaysUnitName(d)), 'w') as f: | 111 | with open(os.path.join(d.getVar('WORKDIR'), allOverlaysUnitName(d)), 'w') as f: |
| 109 | f.write(AllOverlaysTemplate.format(**args)) | 112 | f.write(AllOverlaysTemplate.format(**args)) |
| 110 | 113 | ||
| 111 | mountUnitList = [] | 114 | mountUnitList = [] |
| 112 | overlayMountPoints = d.getVarFlags("OVERLAYFS_MOUNT_POINT") | 115 | overlayMountPoints = d.getVarFlags("OVERLAYFS_MOUNT_POINT") |
| 113 | for mountPoint in overlayMountPoints: | 116 | for mountPoint in overlayMountPoints: |
| 117 | bb.debug(1, "Process variable flag %s" % mountPoint) | ||
| 114 | for lower in d.getVarFlag('OVERLAYFS_WRITABLE_PATHS', mountPoint).split(): | 118 | for lower in d.getVarFlag('OVERLAYFS_WRITABLE_PATHS', mountPoint).split(): |
| 119 | bb.debug(1, "Prepare mount unit for %s with data mount point %s" % | ||
| 120 | (lower, d.getVarFlag('OVERLAYFS_MOUNT_POINT', mountPoint))) | ||
| 115 | prepareUnits(d.getVarFlag('OVERLAYFS_MOUNT_POINT', mountPoint), lower) | 121 | prepareUnits(d.getVarFlag('OVERLAYFS_MOUNT_POINT', mountPoint), lower) |
| 116 | mountUnitList.append(mountUnitName(lower)) | 122 | mountUnitList.append(mountUnitName(lower)) |
| 117 | 123 | ||
