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

Cannot add user to the render system group #411

Closed
MidnessX opened this issue Dec 27, 2022 · 1 comment
Closed

Cannot add user to the render system group #411

MidnessX opened this issue Dec 27, 2022 · 1 comment
Labels
bug Something isn't working jira

Comments

@MidnessX
Copy link

MidnessX commented Dec 27, 2022

I'm trying to add a user to the render group as it should have access to a graphics card passed through by the host.

However, this has proven to be impossible as writing

[...]
passwd:
  users:
    - name: myuser
      groups:
        - render
[...]

results in ignition-files.service failing due to the render group missing, and manually creating the group by doing

[...]
passwd:
  groups:
    - name: render
      system: true
  users:
    - name: myuser
      groups:
        - render
[...]

instead results in ignition-files.service failing due to the render group already existing.

@prestist prestist added bug Something isn't working jira labels Jan 16, 2023
@bgilbert
Copy link
Contributor

bgilbert commented Jan 29, 2023

Thanks for the report. This is coreos/fedora-coreos-tracker#155. The issue is that usermod doesn't know to copy the render group from /usr/lib/group to /etc/group before trying to add a user to it. At the moment I believe you'd need to write a ConditionFirstBoot=true systemd unit which does something like grep ^render: /usr/lib/group >> /etc/group && usermod -G render -a core.

Closing as duplicate of coreos/fedora-coreos-tracker#155.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working jira
Projects
None yet
Development

No branches or pull requests

3 participants