From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6654511350878830592 X-Received: by 2002:a1c:dc82:: with SMTP id t124mr371359wmg.0.1549374161700; Tue, 05 Feb 2019 05:42:41 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a1c:80c4:: with SMTP id b187ls2372981wmd.0.canary-gmail; Tue, 05 Feb 2019 05:42:41 -0800 (PST) X-Google-Smtp-Source: AHgI3IaSlHRvMGUbozqahcZQVjav/dRXZPONLXN1ThQ/qd05kXHUyjnDDyIvaGd5LuJK7v7vL7eJ X-Received: by 2002:a7b:c002:: with SMTP id c2mr366317wmb.0.1549374161129; Tue, 05 Feb 2019 05:42:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549374161; cv=none; d=google.com; s=arc-20160816; b=PX6k1RFsAWlkwf22bZIx7WquJW4N+bY/WsP1f0uAZgVaCYvAwyzzHtlg+gmg5H4TWJ T6AhEcFGIvZyC7F/xvPr9HX7JH293Acn7SAk5pP9ziMcJgaEQwkV2WNP4A5ehiV4ch7Y K0BPdxoSBOYyqPROzJAbOhP1MaH2XCglHVdwjLW64tJckXbHrtUsDvRJLTh6htpl+NqN pXGNpySUHm4KvorgntpChGb2pVXviQFkWWhjdnAArzv5IKhaAitsTAZeaVXoMhD6J16/ HC303IJlGpUyvuV219EPBwT78UX1buJcbLXiQ+AUuDkOdrX1a+cNq/8ptYWaPSlwiAvy XKZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from; bh=tdY6+IQaWoA7f3Npixs0yR+8802K3k61XtyZPAoMA5k=; b=uC3MSszDtXIdEcH51cCEMqKFlw8dhIW11Y27nILDuuDJKIyETnvsExJZaTJn6r+l5g Ol6MTFsCoGKzSDoh0kMg25FCOVmVCAvmHJGnIk2lmlpexYCEh/P05bgnF6xC8UrnKoIw VsVfcIf9FQyLgNUVO+qmxyUXyKqDqc7WSwfZjjzkM+1x1duM7bVxuH42MYVYHgj1DpbW f6QCiR1THSdJZsr8kN2rnhm7pTcwNBbuT3kUwxj17XulUZHbIH0Bg9CeBAisaOoINNe/ yZCXkjG5hZzitHOxEgbdg8sXoGYOKCTVICuobu82o3Ray5R+ominOi9+SbgdNXEWc25g FoYg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of claudius.heine.ext@siemens.com designates 192.35.17.28 as permitted sender) smtp.mailfrom=claudius.heine.ext@siemens.com Return-Path: Received: from goliath.siemens.de (goliath.siemens.de. [192.35.17.28]) by gmr-mx.google.com with ESMTPS id z207si607145wmc.2.2019.02.05.05.42.41 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Feb 2019 05:42:41 -0800 (PST) Received-SPF: pass (google.com: domain of claudius.heine.ext@siemens.com designates 192.35.17.28 as permitted sender) client-ip=192.35.17.28; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of claudius.heine.ext@siemens.com designates 192.35.17.28 as permitted sender) smtp.mailfrom=claudius.heine.ext@siemens.com Received: from mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by goliath.siemens.de (8.15.2/8.15.2) with ESMTPS id x15DgduS016336 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 5 Feb 2019 14:42:40 +0100 Received: from ring.ppmd.siemens.net (linux-ses-ext02.ppmd.siemens.net [139.25.69.181]) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id x15Dgc1r012842; Tue, 5 Feb 2019 14:42:38 +0100 From: claudius.heine.ext@siemens.com To: isar-users@googlegroups.com Cc: Claudius Heine Subject: [RFC PATCH 0/2] Centralize root password and hostname setting Date: Tue, 5 Feb 2019 14:42:33 +0100 Message-Id: <20190205134235.27523-1-claudius.heine.ext@siemens.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUID: dVnWC3uDzCa4 From: Claudius Heine 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