From 70f21e74034a6726eff67368debacf8e680d7baa Mon Sep 17 00:00:00 2001 From: Emanuele Aina <emanuele.aina@collabora.com> Date: Sun, 18 Nov 2018 23:28:56 +0100 Subject: [PATCH] basesdk: Fix ownership of /home/user Port commit 587d2157a7d6f to the basesdk recipe. After commit a7e7e1016ec `/home/user` has been owned by `root:root`, breaking grahical login among the others. This is because we are no longer creating `/home/user` when creating the user itself, but `scripts/clone-sample-repos.sh` does `mkdir -p /home/user/sample-applications/` and then `chown user:user -R /home/user/sample-applications/`, leaving `/home/user/` with the wrong owner. Forcing the creation of the homedir addresses the issue. Signed-off-by: Emanuele Aina <emanuele.aina@collabora.com> --- apertis-ospack-basesdk.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apertis-ospack-basesdk.yaml b/apertis-ospack-basesdk.yaml index fa87cd9..8bb5072 100644 --- a/apertis-ospack-basesdk.yaml +++ b/apertis-ospack-basesdk.yaml @@ -497,6 +497,11 @@ actions: chroot: true script: scripts/setup_user.sh + - action: run + chroot: true + description: "Force homedir creation so sample-applications can be cloned in" + command: /usr/sbin/apertis-create-homedir-if-needed 1000 + - action: run chroot: true description: "Creating mount point /Applications" -- GitLab