From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6558749580291211264 X-Received: by 2002:a2e:9917:: with SMTP id v23-v6mr853424lji.1.1527586202292; Tue, 29 May 2018 02:30:02 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a19:f501:: with SMTP id j1-v6ls328232lfb.16.gmail; Tue, 29 May 2018 02:30:01 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLeg3E8m97TBK/mKqQhbac2ngyr3e54vkkFYSGSXsTLOHnOx146naBtTn4tk3ZhH5nCS7cn X-Received: by 2002:a19:18a2:: with SMTP id 34-v6mr753393lfy.0.1527586201812; Tue, 29 May 2018 02:30:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527586201; cv=none; d=google.com; s=arc-20160816; b=UDPa3QPu6TGcPn6FAp3E9y08QieZH1XKnPmaQy3LIiMBqEgRgCWhDQlFsqelYuV20F I/sq38pUunIGI0XglllJf9jyOYlo81DR/g2TEyk/yP+Gv1ItUG+MjJxn/oBEKU0Bt+jR fSYH3LnSLe/hsHfWe6ZRYa4oWMRgYlWqV6nT9zjTh2LSBkHjRj9J01Ag17LrKkBsSN4b z/Z8lz4FLrDhvQ+gJVEFFntlWgOgEiBisVGV3UcbknaWDBuDZL59QKmz0AX7akJFggY6 Um7rJ0pqFNu2BEqXybqI2bA4nE2F0mi5Sw4Oyxf6VHordw1Pdk8QHaeN5woLOehQiEGq vicQ== 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 :arc-authentication-results; bh=tZguEYxjD0g/cOQK8sGLx6pcSfinxCpV5J2B+Fkd+qA=; b=VhBl7cz15crxKg79Qi4OZ/xda/PifDm/jOYVsFJK3KbcXNCrfAC4J1OMPfgvJNqOpm FeKYXv0fjCiArX2P5h0yV9uTPzw5nrId0brI1tLskj1UzRGK1jB9lSKrW6MlWC+xvcf3 DfLIsFhNu/qXVUVvROMKgsbjj9ZmGd6hWNA03kI9xZDWuajLcfJC1XLrAomL/CLD4anE us1QQowzUBudcSd2tuWHUBkR6GTocmoBb8fKW6u63PjZHjTzl9Zew3vu20KtlzaNn9NI Q4bt28BHE7SR7gxpDV8mgEx9LA+yTLAtNv4eqQ0MtxSnWMoPAC9+J7nQJsaKPGf8zitK F8fg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of claudius.heine.ext@siemens.com designates 192.35.17.14 as permitted sender) smtp.mailfrom=claudius.heine.ext@siemens.com Return-Path: Received: from david.siemens.de (david.siemens.de. [192.35.17.14]) by gmr-mx.google.com with ESMTPS id y205-v6si1017886lfa.0.2018.05.29.02.30.01 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 May 2018 02:30:01 -0700 (PDT) Received-SPF: pass (google.com: domain of claudius.heine.ext@siemens.com designates 192.35.17.14 as permitted sender) client-ip=192.35.17.14; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of claudius.heine.ext@siemens.com designates 192.35.17.14 as permitted sender) smtp.mailfrom=claudius.heine.ext@siemens.com Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by david.siemens.de (8.15.2/8.15.2) with ESMTPS id w4T9Tv4U002909 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 29 May 2018 11:29:59 +0200 Received: from [139.25.69.69] (linux-ses-ext02.ppmd.siemens.net [139.25.69.69]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id w4T9TvaE006243 for ; Tue, 29 May 2018 11:29:57 +0200 Subject: Re: [PATCH v4 0/3] One-shot configuration packages To: isar-users@googlegroups.com References: <20180528105643.23518-1-claudius.heine.ext@siemens.com> <20180529080011.GA4816@yssyq.radix50.net> From: Claudius Heine Message-ID: <3e88b5b4-53b8-613d-ac35-00f8643fa232@siemens.com> Date: Tue, 29 May 2018 11:29:57 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180529080011.GA4816@yssyq.radix50.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: C4/GKGnYjv+T Hi Baurzhan, On 2018-05-29 10:00, Baurzhan Ismagulov wrote: > Hello Claudius, > > this is a useful feature that is also user-visible. Would you like to provide a > patch to doc/user_manual.md? I will do that and send a v5. But I answer your questions here as well. For me its easier to explain something in a dialog that just writing docs to someone unknown. :) > I think we should provide a recommendation for the > user how to do customizations. I'd be especially interested in your vision > where to provide what, e.g.: One or many customization packages? Currently I cannot think of anything else that could be done with those one-shot packages apart from localepurge. Is generally only useful if someone needs a tool to customize the root file system that shouldn't be part of the image later. Normal customization packages that just change or add some configuration files should not be one-shot packages, they don't require special tools and therefor its not use purging them to remove their dependencies. I don't even know if it makes really sense to allow multiple packages as one-shot packages, but I did it because it might be useful in some strange corner cases for someone and wasn't a big effort to do. > If many, how > to split customizations between packages? All the customization, apart from locale configuration should be in normal packages, however the user choose to do this. locale configuration should be done with overwriting isar-cfg-localepurge package or its files. Maybe the name of that package is choosen poorly. I don't know. > Or just describe the mechanism and leave the splitting decision to the user? Yes. That would be useful. The user might want to mix and match different configuration fragments contained in multiple configuration packages. > In the latter case, would that mean > that in Isar, we'll by default provide only one package for all customizations? I would think so. Maybe move the customization to a isar-cfg-example package? Claudius > > With kind regards, > Baurzhan. > > > On Mon, May 28, 2018 at 12:56:40PM +0200, claudius.heine.ext@siemens.com wrote: >> From: Claudius Heine >> >> Hi, >> >> I implemented Hennings suggestion to purge the one-shot packages in the >> reverse order of the installation. >> >> Claudius >> >> Changes from v3: >> - Purge one-shot packages in reverse order >> >> Changes from v2: >> - Install one-shot package with a loop >> - Rename '-y' apt parameter to '--yes' >> - Move isar-cfg-localepurge files from /usr/local/etc to /usr/lib/ >> >> Changes from v1: >> - rebased to current next >> - removed locale.nopurge setup in isar-bootstrap >> >> Claudius Heine (3): >> isar-bootstrap|configscript: implement one shot config option >> meta/isar-cfg-localepurge: added locale purge recipe >> meta-isar/isar-image-base: switch use isar-cfg-localepurge >> >> .../images/files/debian-configscript.sh | 9 ------ >> .../images/files/raspbian-configscript.sh | 8 ----- >> .../recipes-core/images/isar-image-base.bb | 6 ++-- >> meta/classes/isar-bootstrap-helper.bbclass | 32 ++++++++++++++++--- >> .../isar-bootstrap/files/locale.nopurge | 10 ------ >> .../isar-bootstrap/isar-bootstrap.bb | 4 +-- >> .../isar-cfg-localepurge/files/locale.debconf | 12 +++++++ >> .../isar-cfg-localepurge/files/locale.gen | 1 + >> .../isar-cfg-localepurge/files/postinst | 30 +++++++++++++++++ >> .../isar-cfg-localepurge.bb | 19 +++++++++++ >> 10 files changed, 94 insertions(+), 37 deletions(-) >> delete mode 100644 meta/recipes-core/isar-bootstrap/files/locale.nopurge >> create mode 100644 meta/recipes-support/isar-cfg-localepurge/files/locale.debconf >> create mode 100644 meta/recipes-support/isar-cfg-localepurge/files/locale.gen >> create mode 100644 meta/recipes-support/isar-cfg-localepurge/files/postinst >> create mode 100644 meta/recipes-support/isar-cfg-localepurge/isar-cfg-localepurge.bb >> >> -- >> 2.17.0 > -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-54 Fax: (+49)-8142-66989-80 Email: ch@denx.de