blob: 4835e9381112bddfe18e256ba3fa9bbd282173c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
do_install:append() {
# Note: Use of .profile here assumes busybox shell.
# 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'
export XDG_RUNTIME_DIR=/run/user/$(id -u)
export XDG_CONFIG_HOME=$HOME/.config
EOF
}
FILES:${PN}:append = " /home/${USER_TO_ADD_NAME}/.profile"
|