From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6715352290238136320 X-Received: by 2002:adf:db50:: with SMTP id f16mr69379465wrj.214.1563883212881; Tue, 23 Jul 2019 05:00:12 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a1c:a557:: with SMTP id o84ls15298201wme.3.gmail; Tue, 23 Jul 2019 05:00:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqwnTmlxRbIbh6Euc+j9QVtSLjMDSeYxiUxy1oncnz95GVFihvi9vVANjWj/ymcMpU6u7FaM X-Received: by 2002:a7b:c95a:: with SMTP id i26mr71718884wml.175.1563883212489; Tue, 23 Jul 2019 05:00:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563883212; cv=none; d=google.com; s=arc-20160816; b=m7bG1mjJyaIKmSUoeXw+Mz4POHp6QqTQ4fRgpLlXr1vNSt9Qf5LMcg71RG6V3JeaG+ 5Cs+Pi1Nt7n+5eL3gQa9T7no/90ZSqEH4qRUFz+9R5td1gy83h8zi16JWmccFwZFqmfV Ij4xjcSQgVHPgcmUxREM1aD4nxTGN+bJQmvgn/Zkih1W28Z/6gYt0/fhYrxjBYQlSntp J2jwdDjcMXwv7sO7ySkwfIt4gHYbq9DagwwOQ7Ggrpz4a0cne2jimgqICXvoffcbG/s1 4ZN0HD242oXe0pesGQbv2+3eS5XFxhKJjU+YIGN7ARsRIqWTFh0pYLt58SFsRfmjTF4y uO5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject; bh=HWGHM2jJOP2nCwEb6JsrQaZQhHuajghXaEaeft1jlg0=; b=Wc13EOlFb4jB9tha7tg9ME9LnhCs+D43Y5qFs7/tAMAURepo5yE00+lmL0BqJOg+6v ikqrrBfIu0PTCYTpF2V5PWtqIYHByyWgRGPnsCa9CKdTlEBM2BwR9eDnEfwr0XAtni+f WM1K/cSBMhc/d98SWn75W5WkvdJ911Lq8ZIWJigM9/g8TFWai3emL9x70po/0yH7l6yk pezKVBMdu11feefszLPgjSF6udq9adCM5bBwjcaBtxVo9gZ/+86y765sCIMaO2stEOLy YMmmVBogOJmbOa/AfNEpVKc+U/wA93ORMwwP8KGkYoD1qr1ixf9m76Q66vNKfE3mUM3k xbCQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of quirin.gylstorff@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=quirin.gylstorff@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from thoth.sbs.de (thoth.sbs.de. [192.35.17.2]) by gmr-mx.google.com with ESMTPS id e12si2077810wma.2.2019.07.23.05.00.12 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Jul 2019 05:00:12 -0700 (PDT) Received-SPF: pass (google.com: domain of quirin.gylstorff@siemens.com designates 192.35.17.2 as permitted sender) client-ip=192.35.17.2; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of quirin.gylstorff@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=quirin.gylstorff@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id x6NC0Cc3022267 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 23 Jul 2019 14:00:12 +0200 Received: from [139.25.68.238] ([139.25.68.238]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id x6NC0Cv7005924 for ; Tue, 23 Jul 2019 14:00:12 +0200 Subject: Re: [PATCH 2/3] meta-isar: Add example for user settings To: isar-users@googlegroups.com References: <20190719123628.5500-1-quirin.gylstorff@siemens.com> <20190719123823.5599-1-quirin.gylstorff@siemens.com> <20190719123823.5599-2-quirin.gylstorff@siemens.com> <20190723100840.236037f3@md1za8fc.ad001.siemens.net> From: Quirin Gylstorff Message-ID: <0eb0e7c4-9a8d-7b5e-cd61-770de934cd43@siemens.com> Date: Tue, 23 Jul 2019 14:00:01 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190723100840.236037f3@md1za8fc.ad001.siemens.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: eMknTs/U+Y8D On 7/23/19 10:08 AM, Henning Schild wrote: > Am Fri, 19 Jul 2019 14:38:22 +0200 > schrieb Quirin Gylstorff : > >> Add a new image which creates two user. One with default skel from >> /etc/skel the other from /etc/extra-skel >> >> Signed-off-by: Quirin Gylstorff >> --- >> .../example-user-skel_0.1.bb | 20 ++++++++++++ >> .../recipes-core/images/isar-image-user.bb | 31 >> +++++++++++++++++++ 2 files changed, 51 insertions(+) >> create mode 100644 >> meta-isar/recipes-app/example-user-skel/example-user-skel_0.1.bb >> create mode 100644 meta-isar/recipes-core/images/isar-image-user.bb >> >> diff --git >> a/meta-isar/recipes-app/example-user-skel/example-user-skel_0.1.bb >> b/meta-isar/recipes-app/example-user-skel/example-user-skel_0.1.bb >> new file mode 100644 index 0000000..c53d7f6 --- /dev/null >> +++ b/meta-isar/recipes-app/example-user-skel/example-user-skel_0.1.bb >> @@ -0,0 +1,20 @@ >> +# Sample Skel modifiction for ISAR >> +# >> +# This software is a part of ISAR. >> +# Copyright (C) Siemens AG, 2019 >> +# >> +# SPDX-License-Identifier: MIT >> + >> +DESCRIPTION = "Sample Skel modifiction for ISAR" >> +MAINTAINER = "Your name here " >> +DEBIAN_DEPENDS = "apt (>= 0.4.2), passwd, bash" > > This looks wrong and copied from an outdated example-raw. My guess is > this one can be empty. > My mistake, I will remove the dependencies. >> + >> +inherit dpkg-raw >> + >> +do_install() { >> + bbnote "Create a fake extra skel" >> + echo "# empty config file" > ${WORKDIR}/${PN}.conf >> + install -v -d ${D}/etc/extra-skel >> + install -v -m 644 ${WORKDIR}/${PN}.conf >> ${D}/etc/extra-skel/${PN}.conf +} >> \ No newline at end of file >> diff --git a/meta-isar/recipes-core/images/isar-image-user.bb >> b/meta-isar/recipes-core/images/isar-image-user.bb new file mode >> 100644 index 0000000..f8464f0 >> --- /dev/null >> +++ b/meta-isar/recipes-core/images/isar-image-user.bb >> @@ -0,0 +1,31 @@ >> +# User image recipe >> +# >> +# This software is a part of ISAR. >> +# Copyright (C) Siemens AG, 2019 >> +# >> +# SPDX-License-Identifier: MIT >> + >> +DESCRIPTION = "User Isar image" >> + >> +LICENSE = "gpl-2.0" >> +LIC_FILES_CHKSUM = >> "file://${LAYERDIR_core}/licenses/COPYING.GPLv2;md5=751419260aa954499f7abaabaa882bbe" >> + +inherit image >> + >> +IMAGE_INSTALL += "example-user-skel" >> + >> +# create a user isar with no password and default home >> +USERS += "isar" >> +USER_isar[password] = "" >> +USER_isar[uid] = "1000" >> +USER_isar[groups] = "audio video " >> +USER_isar[shell] = "/bin/bash" >> +USER_isar[flags] = "allow-empty-password create-home" >> +# create a user isarskel with no password and home generated >> from /etc/extra-skel +USERS += "isarskel" >> +USER_isarskel[password] = "" >> +USER_isarskel[uid] = "2000" >> +USER_isarskel[groups] = "audio video " >> +USER_isarskel[shell] = "/bin/bash" >> +USER_isarskel[skel] = "/etc/extra-skel" >> +USER_isarskel[flags] = "allow-empty-password create-home" > > I am not sure an extra image type makes a whole lot of sense here. > Either isar-image-base or nothing i guess. Some sort of test would be > nice but an extra image is too much. > > Have a look at meta-isar/conf/local.conf.sample, that is the root of > running raw isar and it is used for CI testing. > > Henning > OK thanks for the hint, I will move the user settings to the base image. Quirin