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"