Closed pablosproject closed 1 year ago
Hey, looks good! There is some indentation that needs fixing.
Should I start fixing it or would you like to continue to finalize it?
I am looking into the impact of the default-user
. We already have BASE_USER
and BASE_USER_ADD
in the base
module. It also does minor things using the BASE_USER
variable (creates python configs, etc).
So in my tests, I ran the base
module and the new default-user
module, and everything worked, but I am not sure this is correct.
I think that we can just remove the default-user
module and use the default BASE_USER
, forcing the default BASE_USER_ADD
to true. This is because the base
module needs a user set up to work correctly.
What do you think?
Ok, looking in to it more I think
userconf.service
manages all the changes of user naming, perhaps we could just disable it.Hey, so I merged the XZ section of this PR. but not the last part that deals with the default user, that needs changing.
Ok, I am out of the office until tomorrow, then I will find a solution for the default user handling in the base module.
I tried reconciling both modules but had no luck, so here's what I'm doing:
base
module and remove the default-user
moduleBASE_ADD_USER
variable (unused at the moment) to force user creation. It'll be set to true
by default.I'll explain in the documentation of the base module this new change and we'll force that.
In case someone wants to run the raspberry wizard to create the user, BASE_ADD_USER
needs to be set to false
, and some functions (like git clone) will not work during the build (but the user will know that as he prompted for not creating a new user).
Will finalize and test as soon as I can this change.
Take a look at this branch: https://github.com/guysoft/CustomPiOS/tree/default-user
ill merge that once we fix the default user issue
Ok, looks good. The user creation is done on the first boot or when CustomPiOs build script runs? Because in the latter options some modules may not work correctly.
In the former, it happens on first boot.
Ok, fine then.
Hey, just wondering if there anything I can help with to get this merged?
Hi! Let me get my head around this because I forgot what I did. From what I recall just some part from this were merged:
The thing related to the default user was solved in another commit. Is that correct? I think here https://github.com/guysoft/CustomPiOS/commit/30c8b7f97b150dad5e13bf7f9197d2a707729f38
Yes, this is what I see too. so I think this can be closed
Agree, thanks for checking
This fixes new changes in new Raspberry images. In detail:
xz
extension for image detection and automatic download@guysoft I also edited the wiki with the new default user module, let me know if you are happy with it.