public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Quirin Gylstorff <quirin.gylstorff@siemens.com>
To: isar-users@googlegroups.com
Subject: Re: [PATCH 2/3] meta-isar: Add example for user settings
Date: Tue, 23 Jul 2019 14:00:01 +0200	[thread overview]
Message-ID: <0eb0e7c4-9a8d-7b5e-cd61-770de934cd43@siemens.com> (raw)
In-Reply-To: <20190723100840.236037f3@md1za8fc.ad001.siemens.net>

On 7/23/19 10:08 AM, Henning Schild wrote:
> Am Fri, 19 Jul 2019 14:38:22 +0200
> schrieb Quirin Gylstorff <quirin.gylstorff@siemens.com>:
> 
>> 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 <quirin.gylstorff@siemens.com>
>> ---
>>   .../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 <you@domain.com>"
>> +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

  reply	other threads:[~2019-07-23 12:00 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-19 12:36 [PATCH 0/3] Add skeleton dir option Quirin Gylstorff
2019-07-19 12:38 ` [PATCH 1/3] image-account-extension: " Quirin Gylstorff
2019-07-19 12:38   ` [PATCH 2/3] meta-isar: Add example for user settings Quirin Gylstorff
2019-07-23  8:08     ` Henning Schild
2019-07-23 12:00       ` Quirin Gylstorff [this message]
2019-07-23 12:03         ` [PATCH 0/3] Add skeleton dir option Quirin Gylstorff
2019-07-23 12:06         ` Quirin Gylstorff
2019-07-23 12:06           ` [PATCH v2 1/3] image-account-extension: " Quirin Gylstorff
2019-07-23 12:06           ` [PATCH v2] ubifs-img: Correct function name Quirin Gylstorff
2019-07-23 12:06           ` [PATCH v2 2/3] meta-isar: Add example for user settings Quirin Gylstorff
2019-07-23 12:06           ` [PATCH v2 3/3] image-account-extension:Move configure_accounts to postprocess Quirin Gylstorff
2019-07-29 21:25           ` [PATCH 0/3] Add skeleton dir option Baurzhan Ismagulov
2019-07-31 11:44             ` Quirin Gylstorff
2019-07-31 12:40               ` Baurzhan Ismagulov
2019-07-31 14:49                 ` Henning Schild
2019-07-31 17:23                   ` Baurzhan Ismagulov
2019-08-01 16:10                   ` Baurzhan Ismagulov
2019-08-01  7:02                 ` Quirin Gylstorff
2019-08-01  9:50                   ` Baurzhan Ismagulov
2019-08-01 14:23                     ` Quirin Gylstorff
2019-07-19 12:38   ` [PATCH 3/3] image-account-extension:Move configure_accounts to postprocess Quirin Gylstorff

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=0eb0e7c4-9a8d-7b5e-cd61-770de934cd43@siemens.com \
    --to=quirin.gylstorff@siemens.com \
    --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