Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Adds XDG folder structure creation when adding users #537

Open
quentin9696 opened this issue May 30, 2024 · 2 comments
Open

Comments

@quentin9696
Copy link

Podman strongly push to use quadlets to run containers via systemd units (https://docs.podman.io/en/latest/markdown/podman-systemd.unit.5.html)
When I want to create my units and my .container file, I need to always create my XDG structure first. For every user, I need to create the XDG structure, like

    - path: /home/logging/.config
      user:
        name: logging
      group:
        name: logging
    - path: /home/logging/.config/containers
      user:
        name: logging
      group:
        name: logging
    - path: /home/logging/.config/containers/systemd
      user:
        name: logging
      group:
        name: logging
    - path: /home/logging/.config/systemd
      user:
        name: logging
      group:
        name: logging
    - path: /home/logging/.config/systemd/user
      user:
        name: logging
      group:
        name: logging
    - path: /home/logging/.local
      user:
        name: logging
      group:
        name: logging
    - path: /home/logging/.local/state
      user:
        name: logging
      group:
        name: logging

I'm thinking to a way to automate the creation, but it seam that skel cannot be used (https://discussion.fedoraproject.org/t/etc-skel-not-used-for-core-user-in-fedora-coreos/36973/4?replies_to_post_number=4)

Do you have any plan to integrate the XDG folder structure when adding a new user in butane?

@travier
Copy link
Member

travier commented May 30, 2024

#508 might help here.

@quentin9696
Copy link
Author

@travier yes, but since XDG will requires a lot of folder at the same folder will improve a bit the number of folder declaration in butane but not resolve the main issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants