Skip to content
Snippets Groups Projects
Commit 587d2157 authored by Emanuele Aina's avatar Emanuele Aina Committed by Andrej Shadura
Browse files

sdk: Fix ownership of /home/user


After commit a7e7e101 `/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.

Fixes: APERTIS-5527
Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
parent 3ceb9a9a
No related branches found
No related tags found
No related merge requests found
......@@ -705,6 +705,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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment