Jump to content

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


Go to solution Solved by Igor,

Recommended Posts

Posted

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

 

 

This thread is quite old. Please consider starting a new thread rather than reviving this one.

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