Skip to contentSkip to conversation

Generate root password at build

Buildroot Lars Lockenvitz 4 participants 4 messages Aug 3, 2010

lore
Share & tools
lore
#0 lore raw

Hello,

I'm looking for an option in Buildroot (version 2010.05) to set an root password, that will be generate at build.
Is there a possibility?

Or does someone know a way via script?

Signature · 2 lines
Kind Regards
Lars
#1 lore raw

Lars, All,

Quoted 3 lines · On Tuesday 03 August 2010 110341 Lars Lockenvitz wrote:

I'm looking for an option in Buildroot (version 2010.05) to set an root password, that will be generate at build.
Is there a possibility?

man 1 mkpasswd

Regards,
Yann E. MORIN.

Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +0/33 662376056 | Software  Designer | \ / CAMPAIGN     |   ^                |
| --==< O_o >==-- '------------.-------:  X  AGAINST      |  /e\  There is no  |
| http://ymorin.is-a-geek.org/ | (*_*) | / \ HTML MAIL    |  """  conspiracy.  |
'------------------------------'-------'------------------'--------------------'
#2 lore raw
In reply to Lars Lockenvitz
Quoted 7 lines

-----Original Message-----
From: buildroot-bounces at busybox.net [mailto:buildroot- bounces at busybox.net] On Behalf Of Lars Lockenvitz
Sent: Tuesday, 3 August 2010 7:04 PM
To: buildroot at uclibc.org
Subject: [Buildroot] Generate root password at build

Quoted 7 lines

Hello,

I'm looking for an option in Buildroot (version 2010.05) to set an root password, that will be generate at build.
Is there a possibility?

Or does someone know a way via script?

This would be a very good feature to have in menuconfig. If I knew how to do it I'd implement it myself!

Paul.

#3 lore raw
Quoted 9 lines · Paul Jones
Quoted 9 lines

-----Original Message-----
From: buildroot-bounces at busybox.net [mailto:buildroot- bounces at busybox.net] On Behalf Of Lars Lockenvitz
Sent: Tuesday, 3 August 2010 7:04 PM
To: buildroot at uclibc.org
Subject: [Buildroot] Generate root password at build

Hello,

Quoted 8 lines
Quoted 5 lines

I'm looking for an option in Buildroot (version 2010.05) to set an root password, that will be generate at build.
Is there a possibility?

Or does someone know a way via script?

This would be a very good feature to have in menuconfig. If I knew how to do it I'd implement it myself!

It should be doable using the following syntax:

config BR2_RANDOM_PASSWORD
string
option env=RANDOM_PASSWD

Then you need to set RANDOM_PASSWD in the shell before you start menuconfig. The config symbol "BR2_RANDOM_PASSWD" will then have the value as read in the environment variable RANDOM_PASSWD.

So not elegant but possible.

Sam