summaryrefslogtreecommitdiff
path: root/meta-unit-users
diff options
context:
space:
mode:
authorunitexe <unitexe70@gmail.com>2026-02-16 22:31:09 -0600
committerunitexe <unitexe70@gmail.com>2026-02-16 23:08:43 -0600
commitf15373f84dd78c128a4379eda6fb241dd8792ffb (patch)
tree5c0addbb3844e564edff14b2387a97efc68c2286 /meta-unit-users
parent019a45d52dc06c812c3ba74941ee692df6a72e21 (diff)
Initramfs with plymouth splash for raspberrypi3-64
Diffstat (limited to 'meta-unit-users')
-rw-r--r--meta-unit-users/classes/set-xdg-env.bbclass13
1 files changed, 13 insertions, 0 deletions
diff --git a/meta-unit-users/classes/set-xdg-env.bbclass b/meta-unit-users/classes/set-xdg-env.bbclass
new file mode 100644
index 0000000..9c3c6ad
--- /dev/null
+++ b/meta-unit-users/classes/set-xdg-env.bbclass
@@ -0,0 +1,13 @@
+do_install:append() {
+ # 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
+ # In addition it is needed for user journals to
+ # function properly.
+ cat >> ${D}/home/${USER_TO_ADD_NAME}/.profile << 'EOF'
+export XDG_RUNTIME_DIR=/run/user/$(id -u)
+export XDG_CONFIG_HOME=$HOME/.config
+EOF
+}