diff options
| author | Vyacheslav Yurkov <uvv.mail@gmail.com> | 2021-10-17 10:08:55 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-10-30 22:31:52 +0100 |
| commit | 9c8ea9dcf1ea1b5b4c5212a306a6dd89d86b1d5a (patch) | |
| tree | 81bca1c066170c2226001c0efd9b4db16fa1b84a /meta/lib | |
| parent | d81238da5709d16ebf9437420272f24221f2f51a (diff) | |
| download | poky-9c8ea9dcf1ea1b5b4c5212a306a6dd89d86b1d5a.tar.gz | |
overlayfs: all overlays unit
Application can depend on several overlayfs mount points. Provide a
systemd unit application can depend on to make sure all overlays are
mounted before it is started to avoid any race conditions
(From OE-Core rev: b38e194db0c6825f28c56123cf88af94d3f52beb)
Signed-off-by: Bruno Knittel <Bruno.Knittel@bruker.com>
Signed-off-by: Vyacheslav Yurkov <uvv.mail@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
| -rw-r--r-- | meta/lib/oe/overlayfs.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/lib/oe/overlayfs.py b/meta/lib/oe/overlayfs.py index 21ef710509..b5d5e88e80 100644 --- a/meta/lib/oe/overlayfs.py +++ b/meta/lib/oe/overlayfs.py | |||
| @@ -15,6 +15,9 @@ def escapeSystemdUnitName(path): | |||
| 15 | def strForBash(s): | 15 | def strForBash(s): |
| 16 | return s.replace('\\', '\\\\') | 16 | return s.replace('\\', '\\\\') |
| 17 | 17 | ||
| 18 | def allOverlaysUnitName(d): | ||
| 19 | return d.getVar('PN') + '-overlays.service' | ||
| 20 | |||
| 18 | def mountUnitName(unit): | 21 | def mountUnitName(unit): |
| 19 | return escapeSystemdUnitName(unit) + '.mount' | 22 | return escapeSystemdUnitName(unit) + '.mount' |
| 20 | 23 | ||
| @@ -39,5 +42,7 @@ def unitFileList(d): | |||
| 39 | fileList.append(mountUnitName(path)) | 42 | fileList.append(mountUnitName(path)) |
| 40 | fileList.append(helperUnitName(path)) | 43 | fileList.append(helperUnitName(path)) |
| 41 | 44 | ||
| 45 | fileList.append(allOverlaysUnitName(d)) | ||
| 46 | |||
| 42 | return fileList | 47 | return fileList |
| 43 | 48 | ||
