From: Jack Mitchell <ml@communistcode.co.uk>
To: openembedded-core@lists.openembedded.org
Subject: Setting root password
Date: Fri, 11 Oct 2013 15:35:44 +0100 [thread overview]
Message-ID: <52580CC0.10808@communistcode.co.uk> (raw)
What is the best way to set the root password for an image during build
time?
I have come across this snippet:
ROOTFS_POSTPROCESS_COMMAND += " \
sed 's%^root:[^:]*:%root:${PASSWD}:%' \
< ${IMAGE_ROOTFS}/etc/shadow \
> ${IMAGE_ROOTFS}/etc/shadow.new;\
mv ${IMAGE_ROOTFS}/etc/shadow.new ${IMAGE_ROOTFS}/etc/shadow ;"
but it feels a bit hacky... is there no defined way to do this cleanly?
Cheers,
Jack.
next reply other threads:[~2013-10-11 14:35 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-11 14:35 Jack Mitchell [this message]
2013-10-11 15:08 ` Setting root password Koen Kooi
2013-10-12 2:04 ` ChenQi
-- strict thread matches above, loose matches on Subject: below --
2015-09-24 13:24 Andy Pont
[not found] <5603f9ce.e9d1440a.dc3ac.43adSMTPIN_ADDED_BROKEN@mx.google.com>
2015-09-24 13:45 ` Daniel.
2015-09-24 13:59 ` Andy Pont
[not found] ` <560401bd.46256b0a.11836.2eefSMTPIN_ADDED_BROKEN@mx.google.com>
2015-09-24 14:16 ` Daniel.
2015-09-24 14:20 ` Daniel.
2015-09-24 15:17 ` Rudolf J Streif
2015-09-24 16:21 ` Andy Pont
2015-09-29 9:04 ` Paul Eggleton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52580CC0.10808@communistcode.co.uk \
--to=ml@communistcode.co.uk \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.