From 3564e1dd729f8044d3d7bbb8f025e893da4d5716 Mon Sep 17 00:00:00 2001 From: José Bollo Date: Mon, 10 Apr 2017 13:14:31 +0200 Subject: Make /usr/local compatible with SOTA MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This provides a link from /usr/local to ../../var/local that enforces file hierarchy local to the machine to be in a directory frankly separated from /usr. This is important for SOTA/OSTree that must not manage the locally installed files. But this is also important for correctly separating layers of the target. For this reason, the change is not conditionnal to SOTA. Bug-AGL: SPEC-359 Bug-AGL: SPEC-533 Change-Id: I0a709ba15582a011a43f3a3b68d4230bae11b658 Signed-off-by: José Bollo Reviewed-on: https://gerrit.automotivelinux.org/gerrit/9071 Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account Reviewed-by: Stéphane Desneux Reviewed-by: Jan-Simon Moeller --- meta-app-framework/recipes-core/base-files/base-files_%.bbappend | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'meta-app-framework/recipes-core/base-files/base-files_%.bbappend') diff --git a/meta-app-framework/recipes-core/base-files/base-files_%.bbappend b/meta-app-framework/recipes-core/base-files/base-files_%.bbappend index 7e12bc829..0e93b4d65 100644 --- a/meta-app-framework/recipes-core/base-files/base-files_%.bbappend +++ b/meta-app-framework/recipes-core/base-files/base-files_%.bbappend @@ -4,6 +4,13 @@ RDEPENDS_${PN}_append_smack = " smack-userspace" do_install_append() { install -d ${D}/${sysconfdir}/skel/app-data install -d ${D}/${sysconfdir}/skel/.config + install -m 0755 -d ${D}/var + if [ -d ${D}/usr/local ]; then + mv ${D}/usr/local ${D}/var + else + install -m 0755 -d ${D}/var/local + fi + ln -s ../../var/local ${D}/usr/local } do_install_append_smack () { -- cgit 1.2.3-korg