From: claudius.heine.ext@siemens.com
To: isar-users@googlegroups.com
Cc: Claudius Heine <ch@denx.de>
Subject: [RFC PATCH 0/2] Centralize root password and hostname setting
Date: Tue, 5 Feb 2019 14:42:33 +0100 [thread overview]
Message-ID: <20190205134235.27523-1-claudius.heine.ext@siemens.com> (raw)
From: Claudius Heine <ch@denx.de>
Hi,
it would be nice if isar would provide a central approach of setting the
root password and hostname of the image. I prepared some patches for
this based on the template system patchset to demonstrate this.
How should those packages be selected? Manually or maybe via some switch
or feature array? Should those packages be grouped together? How is the
UX of this? Name of variables etc.?
I think it would also be nice to be able to create users similar to how
OE does it with the 'useradd.bbclass'[1].
What do you think? Good idea?
Thanks for the feedback,
Claudius
[1] https://www.yoctoproject.org/docs/latest/mega-manual/mega-manual.html#ref-classes-useradd
Claudius Heine (2):
meta: add isar-cfg-rootpw recipe for setting root password
meta: add isar-cfg-hostname recipe for setting the hostname
meta-isar/conf/local.conf.sample | 3 ++-
.../recipes-app/example-raw/files/postinst | 6 ------
.../isar-cfg-hostname/files/postinst.tmpl | 8 ++++++++
.../isar-cfg-hostname/isar-cfg-hostname.bb | 16 ++++++++++++++++
.../isar-cfg-rootpw/files/postinst.tmpl | 11 +++++++++++
.../isar-cfg-rootpw/isar-cfg-rootpw.bb | 19 +++++++++++++++++++
6 files changed, 56 insertions(+), 7 deletions(-)
create mode 100644 meta/recipes-support/isar-cfg-hostname/files/postinst.tmpl
create mode 100644 meta/recipes-support/isar-cfg-hostname/isar-cfg-hostname.bb
create mode 100644 meta/recipes-support/isar-cfg-rootpw/files/postinst.tmpl
create mode 100644 meta/recipes-support/isar-cfg-rootpw/isar-cfg-rootpw.bb
--
2.20.1
next reply other threads:[~2019-02-05 13:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-05 13:42 claudius.heine.ext [this message]
2019-02-05 13:42 ` [RFC PATCH 1/2] meta: add isar-cfg-rootpw recipe for setting root password claudius.heine.ext
2019-02-06 12:12 ` Henning Schild
2019-02-05 13:42 ` [RFC PATCH 2/2] meta: add isar-cfg-hostname recipe for setting the hostname claudius.heine.ext
2019-02-06 12:15 ` Henning Schild
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=20190205134235.27523-1-claudius.heine.ext@siemens.com \
--to=claudius.heine.ext@siemens.com \
--cc=ch@denx.de \
--cc=isar-users@googlegroups.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox