diff options
| author | unitexe <unitexe70@gmail.com> | 2026-01-26 23:36:49 -0600 |
|---|---|---|
| committer | unitexe <unitexe70@gmail.com> | 2026-01-26 23:47:13 -0600 |
| commit | 10a18c2b17f42a741fa8c44dfb49f877a411a885 (patch) | |
| tree | d0708007cdd6690b3c9f0d52f18d8978c01feba2 /meta-virtualization-extra | |
| parent | 3852ad8467ab7c399005609ec79fd8cb3629ea4c (diff) | |
Add sbin to svc user path
- Create .profile by default in user recipes
- The set-xdg-env class needs to append not overwrite
Diffstat (limited to 'meta-virtualization-extra')
| -rw-r--r-- | meta-virtualization-extra/classes/set-xdg-env.bbclass | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/meta-virtualization-extra/classes/set-xdg-env.bbclass b/meta-virtualization-extra/classes/set-xdg-env.bbclass index 4835e93..667f89a 100644 --- a/meta-virtualization-extra/classes/set-xdg-env.bbclass +++ b/meta-virtualization-extra/classes/set-xdg-env.bbclass @@ -1,14 +1,11 @@ do_install:append() { - # Note: Use of .profile here assumes busybox shell. + # Assumes that .profile is already installed. # Podman uses these (if defined) for overriding # default configuration file locations. This is # explained here: # https://github.com/containers/podman/blob/main/docs/tutorials/rootless_tutorial.md#user-configuration-files - install -D -m 0644 /dev/null ${D}/home/${USER_TO_ADD_NAME}/.profile - cat > ${D}/home/${USER_TO_ADD_NAME}/.profile << 'EOF' + cat >> ${D}/home/${USER_TO_ADD_NAME}/.profile << 'EOF' export XDG_RUNTIME_DIR=/run/user/$(id -u) export XDG_CONFIG_HOME=$HOME/.config EOF } - -FILES:${PN}:append = " /home/${USER_TO_ADD_NAME}/.profile" |
