ilbers / isar

Integration System for Automated Root filesystem generation
Other
177 stars 72 forks source link

Add user with bash #103

Closed SCordibella closed 7 months ago

SCordibella commented 7 months ago

Dear All, I am trying to add a user following the example reported in user-isar.yaml file.

The problem is that the new user has sh as shell and I want to create it with /usr/bin/bash. I tried different user flags, but no one works.

Are there any documentation about the syntax to use?

Best regards, Stefano.

WiseLord commented 7 months ago

Hello. You could try something like

USER_isar[shell] = "/bin/bash"

Also, other available options are self-documented in meta/classes/image-account-extension.bbclass.

SCordibella commented 7 months ago

Thank you @WiseLord it works as expected.

jan-kiszka commented 7 months ago

We should still consider lifting this code-level documentation into the user manual - given that there is not even a link from the manual to that code.

WiseLord commented 7 months ago

We actually have it documented at https://github.com/ilbers/isar/blob/master/doc/user_manual.md#user-and-group-configuration But it may be a bit hard to find since it's not reflected in the Contents.

jan-kiszka commented 7 months ago

So, what's missing in the manual are the examples - better move them from the code to the manual.