You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having some problems with functionality that requires a user and a home folder in my distro. I am using the base module to add the user and set the password:
Because the code path that updates the user for raspbian and raspios uses the /boot/userconf.txt method, the user is not created at build-time so myuser and its home folder will not exist during build. This also affects built in functionality, such as unpack which will fail with "User not found".
My workaround is to set the distro to something else to trigger normal user creation. This works for me only because I do not use other modules that requires the BASE_DISTRO variable.
export BASE_DISTRO="other"
Why not skip the /boot/userconf.txt method all together?
The text was updated successfully, but these errors were encountered:
sunefred
changed the title
Support user creation at build-time for raspbian, raspios
Support user creation at build-time for raspbian and raspios
Nov 4, 2022
I am having some problems with functionality that requires a user and a home folder in my distro. I am using the base module to add the user and set the password:
Because the code path that updates the user for raspbian and raspios uses the
/boot/userconf.txt
method, the user is not created at build-time somyuser
and its home folder will not exist during build. This also affects built in functionality, such asunpack
which will fail with "User not found".My workaround is to set the distro to something else to trigger normal user creation. This works for me only because I do not use other modules that requires the
BASE_DISTRO
variable.Why not skip the
/boot/userconf.txt
method all together?The text was updated successfully, but these errors were encountered: