Jump to content

Is is possible to disable the first run wizard via armbain build framework?


mfreudenberg
Go to solution Solved by Igor,

Recommended Posts

Hi,

 

i'd like to know if it's possible to disable the first run wizard (set up of root password, timezone locale etc) via armbian build framework? I have build my own image, and set the parameter DEST_LANG="de_DE.UTF-8" , but still the wizard shows up after flashing and asks me for the locale.

Can i do this type of customization in the customize-image.sh? (sorry if that's a too stupid or obvious question). This is my customize-image.sh script (i have truncated it).

 

#!/bin/bash

# arguments: $RELEASE $LINUXFAMILY $BOARD $BUILD_DESKTOP
#
# This is the image customization script

# NOTE: It is copied to /tmp directory inside the image
# and executed there inside chroot environment
# so don't reference any files that are not already installed

# NOTE: If you want to transfer files between chroot and host
# userpatches/overlay directory on host is bind-mounted to /tmp/overlay in chroot
# The sd card's root path is accessible via $SDCARD variable.

echo "add user rock"
useradd -s /bin/bash -m -c "rock" rock -p rock

echo "set hostname"
hostname -b "myrockpi"

echo "update armbianEnv"
ARMBIANENV="/boot/armbianEnv.txt"
if grep -q "console=" "$ARMBIANENV"; then
    sed -i 's/console=.*/console=display/g' $ARMBIANENV
else
    echo "console=display" >> $ARMBIANENV
fi

 

Michael

 

 

Link to comment
Share on other sites

  • Solution
3 hours ago, mfreudenberg said:

Can i do this type of customization in the customize-image.sh?


Add:
 

rm /root/.not_logged_in_yet


Ref: https://github.com/armbian/build/blob/master/packages/bsp/common/usr/lib/armbian/armbian-firstlogin#L302 but this will disable whole 1st login procedure - check if script is doing something you might need.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines