From 9c8ea9dcf1ea1b5b4c5212a306a6dd89d86b1d5a Mon Sep 17 00:00:00 2001 From: Vyacheslav Yurkov Date: Sun, 17 Oct 2021 10:08:55 +0200 Subject: 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 Signed-off-by: Vyacheslav Yurkov Signed-off-by: Richard Purdie --- meta/lib/oe/overlayfs.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'meta/lib') 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): def strForBash(s): return s.replace('\\', '\\\\') +def allOverlaysUnitName(d): + return d.getVar('PN') + '-overlays.service' + def mountUnitName(unit): return escapeSystemdUnitName(unit) + '.mount' @@ -39,5 +42,7 @@ def unitFileList(d): fileList.append(mountUnitName(path)) fileList.append(helperUnitName(path)) + fileList.append(allOverlaysUnitName(d)) + return fileList -- cgit v1.2.3-54-g00ecf