Skip to content

[Bug]: Race condition in armbian-firstlogin #9032

@schavkin

Description

@schavkin

What happened?

armbian-firstlogin sometimes stucks without creating PRESET_USER_NAME due to ps|awk|kill race between multiple root sessions

How to reproduce?

I'm using BTT Pi board with the latest trixie minimal image Armbian_25.11.1_Bigtreetech-cb1_trixie_current_6.12.58_minimal.img

/root/.not_logged_in_yet

#/root/.not_logged_in_yet
#PRESET_CONFIGURATION="http://path/to/config/file"
# Network Settings
PRESET_NET_CHANGE_DEFAULTS="1"
## Ethernet
PRESET_NET_ETHERNET_ENABLED="1"     #   Ignored due to WiFi
## WiFi
PRESET_NET_WIFI_ENABLED="1"
PRESET_NET_WIFI_SSID="Cisco_1234"
PRESET_NET_WIFI_KEY="12345678"
PRESET_NET_WIFI_COUNTRYCODE="SK"
PRESET_CONNECT_WIRELESS="n"
## Static IP
PRESET_NET_USE_STATIC="0"
#PRESET_NET_STATIC_IP="192.168.1.100"
#PRESET_NET_STATIC_MASK="255.255.255.0"
#PRESET_NET_STATIC_GATEWAY="192.168.1.1"
#PRESET_NET_STATIC_DNS="192.168.1.1"
 
# System
SET_LANG_BASED_ON_LOCATION="y"
PRESET_LOCALE="en_US.UTF-8"
PRESET_TIMEZONE="Etc/UTC"
 
# Root
PRESET_ROOT_PASSWORD="1"
PRESET_ROOT_KEY=""
 
# User
PRESET_USER_NAME="armbian"
PRESET_USER_PASSWORD="1"
PRESET_USER_KEY=""
PRESET_DEFAULT_REALNAME="Armbian user"
PRESET_USER_SHELL="bash"

Branch

main (main development branch)

On which host OS are you running the build script and observing this problem?

Debian 13 Trixie

Are you building on Windows WSL2?

  • Yes, my Ubuntu/Debian/OtherOS is running on WSL2

Relevant log URL

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working as it should

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions