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?
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?