[RFC]add automatic support to armbian-firstlogin#6194
[RFC]add automatic support to armbian-firstlogin#6194igorpecovnik merged 4 commits intoarmbian:mainfrom
Conversation
|
Not quite the same but many of those configuration values can be set through other config vars as well. I believe root password can be set via |
These configs are set at build time, I think armbian-fisrtlogin will still do the user/password creation process. This just disable the firstrun service. I want to run firstrun service with preconfig so people don't have to connect a keyboard to do some manual operations. I like the process of firstrun service, so my code are integreted in its script. |
11a8e6b to
237fc77
Compare
|
Add variable In manual root password creation process, script will kill other logged in sessions after root password is typed. But this kill action will exit the automatic script. So in automatic process, if |
|
If this is being reworked ... one additional idea.
However 1st run predefined wireless / network connect seems to be useful and I would say we extend this PR to include this functionality and remove: What do you think? |
|
I haven't tried the old armbian-firstrun-config service to preconfig ethernet/wireless networks. I guess it will run before the firstlogin script. I will test the old service to see if it works. |
It feels we have some redundancy. I want to get rid of it and have wireless setup also a part of your config. Does it makes sense? |
|
Let me try it. |
|
If you have time to complete and test this within a week, we can merge it into 02 ... |
|
I come back to my hometown with no board to test and will be back to my boards at 18th, Feb. But I can do some coding these days and test it when I can reach my boards. |
|
Thanks. No problem, we will merge this after release then. |
b7f6573 to
1e9cb1e
Compare
1e9cb1e to
fd2593d
Compare
|
FR_* network configs are moved from |
fd2593d to
25f2675
Compare
|
Thanks Igor, I didn't have time to change and test. |
I know ;) |
Description
Add preset variables so that image can do first login automaticly without user interaction.
I store variables like username/password in
/root/.not_logged_in_yetso that it will get deleted after firstlogin.We can enable setting of these variables by extension
preset-firstrunin board config:Network preconfig from armbian-firstrun-config are also moved here.
Edit
extensions/preset-firstrun.shto set detail variables.AR-2297
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Please also note any relevant details for your test configuration.
./compile.sh BOARD=fl700n BRANCH=edge DEB_COMPRESS=xz KERNEL_GIT=shallow BUILD_DESKTOP=yes BUILD_MINIMAL=no KERNEL_CONFIGURE=no RELEASE=bookworm DESKTOP_ENVIRONMENT=xfce DESKTOP_ENVIRONMENT_CONFIG_NAME=config_base DESKTOP_APPGROUPS_SELECTED=''Haven't tested on board with wireless. I haven't implement automaticTested on orangepi 3b with wireless.Connect via wireless? [Y/n]. I will do it later../compile.sh BOARD=orangepi3b BRANCH=edge DEB_COMPRESS=xz KERNEL_GIT=shallow BUILD_DESKTOP=yes BUILD_MINIMAL=no KERNEL_CONFIGURE=no RELEASE=bookworm DESKTOP_ENVIRONMENT=xfce DESKTOP_ENVIRONMENT_CONFIG_NAME=config_base DESKTOP_APPGROUPS_SELECTED=''Checklist: