public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [RFC PATCH 0/2] Centralize root password and hostname setting
@ 2019-02-05 13:42 claudius.heine.ext
  2019-02-05 13:42 ` [RFC PATCH 1/2] meta: add isar-cfg-rootpw recipe for setting root password claudius.heine.ext
  2019-02-05 13:42 ` [RFC PATCH 2/2] meta: add isar-cfg-hostname recipe for setting the hostname claudius.heine.ext
  0 siblings, 2 replies; 5+ messages in thread
From: claudius.heine.ext @ 2019-02-05 13:42 UTC (permalink / raw)
  To: isar-users; +Cc: Claudius Heine

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-02-06 12:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-05 13:42 [RFC PATCH 0/2] Centralize root password and hostname setting claudius.heine.ext
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox