From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6617812835611181056 X-Received: by 2002:adf:8b87:: with SMTP id o7-v6mr271907wra.26.1540891528315; Tue, 30 Oct 2018 02:25:28 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:adf:eb04:: with SMTP id s4-v6ls1547736wrn.7.gmail; Tue, 30 Oct 2018 02:25:27 -0700 (PDT) X-Google-Smtp-Source: AJdET5c4GyrPr26wsZAjMSMpknbZ+XaO8R9L7CF4X63ersUMpRmCTo/F4bJhE4gHW1xZl7QKRR8U X-Received: by 2002:adf:eacb:: with SMTP id o11-v6mr2462850wrn.19.1540891527888; Tue, 30 Oct 2018 02:25:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540891527; cv=none; d=google.com; s=arc-20160816; b=e8ZGi/eSTtb+UqugFtTnLikKuYkPnuTf0HHegIU2dOYM+byHMRFbb+If89KyN9k2eJ UXAKz3r24I6nh/+gN67MV1qmwaEr3PrXxRgA604/RSAheV9a44AViTmpG9e93GnxEHun q2yv5+FVKvuOvEna5GAoVMT4gtp9qE1CPuSaw4O2WfmERzKOd8OrvK4lKPTUSyVLVdLq VIfp2EP1IeZ4Z+5ZIrCjxLVxr0BbUhI2WcQjeQZBIFhOcFG/Yz0WDaHPBEUtOGNgQtL+ 1irCsfH9zT7fM+j22/+9unIb0G4P2D1rLLwEmnLEgtZ4CFk/40EYVzaK1wPl10O9OWwr gzNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date; bh=UGAHInsGFbSN3cQrmrrgxdBqZfuPfTM/RoMHRvQQM28=; b=QoL/h8SKMfRupO5pnZn+4PO5f0FwH2cK7Stc8Ro9RDY4Tblva8yVBhESzNv6ZF/I5y jXJjXGjUywm3eyL+6v90GUkiDirTJvi6G74eoteHfPRSQ+ipUXNzsEavjPX2YluMIaTn 0Kgmi9grxt8wPnPkxcQuuoP1l9V/T4ct5lysdxvhA0QGB+SgappLV56E2aGkS7Qw6bld 1CEDsHKxl7dP+mv+JvxnwP1RtIZgdfSjaKvZ1UeSwSrPr044vc0u8uL0QSJ76mH/Q+2O XS1RuhodLyINktv2FjcjHwu8qnkniIBM9swaDag4dul5UGak23BmcpO65iCh+WlAodxm F7MA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.28 as permitted sender) smtp.mailfrom=henning.schild@siemens.com Return-Path: Received: from goliath.siemens.de (goliath.siemens.de. [192.35.17.28]) by gmr-mx.google.com with ESMTPS id e5-v6si627922wru.1.2018.10.30.02.25.27 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Oct 2018 02:25:27 -0700 (PDT) Received-SPF: pass (google.com: domain of henning.schild@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 henning.schild@siemens.com designates 192.35.17.28 as permitted sender) smtp.mailfrom=henning.schild@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 w9U9PRMm021828 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 30 Oct 2018 10:25:27 +0100 Received: from md1pvb1c.ad001.siemens.net (md1pvb1c.ad001.siemens.net [139.25.68.40]) by mail1.sbs.de (8.15.2/8.15.2) with ESMTPS id w9U9PRZI029947 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 30 Oct 2018 10:25:27 +0100 Date: Tue, 30 Oct 2018 10:25:46 +0100 From: Henning Schild To: "Hombourger, Cedric" Cc: "isar-users@googlegroups.com" Subject: Re: [PATCH 0/4] add support for OE's ROOTFS_*_COMMAND Message-ID: <20181030102546.6f84f930@md1pvb1c.ad001.siemens.net> In-Reply-To: References: <20181029161303.7410-1-Cedric_Hombourger@mentor.com> <20181029174520.1fd028fe@md1pvb1c.ad001.siemens.net> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-TUID: MTExC3IY6Htj Am Mon, 29 Oct 2018 16:55:10 +0000 schrieb "Hombourger, Cedric" : > Sure thing. This will allow us to generate license/package manifests > like Yocto does amongst other things (eg rootfs optimization > functions). In other words system wide tweaks. The former is the > subject of an upcoming patch series. rootfs optimization functions sounds very much like hacking your way around the golden rule i mentioned earlier. And since people will abuse such a mechanism it is best to not introduce it. For the license manifests ... that sounds interesting indeed but will likely not require such a generic mechanism. I guess concrete examples would be useful. But looking just at the mechanism without such examples, i am strongly against merging that code. Henning > Sent from a mobile > > > On 29 Oct 2018, at 17:45, Henning Schild > > wrote: > > > > Hey, > > > > could you please elaborate on why this is needed and what you want > > to do with it? I suspect there are already other ways of doing what > > you might want to do. > > > > One golden rule is that _everything_ inside the rootfs comes from > > a .deb package. If you need to execute scripts, go for post/pre inst > > etc. > > > > Henning > > > > Am Mon, 29 Oct 2018 17:12:59 +0100 > > schrieb Cedric Hombourger : > > > >> OpenEmbedded allows custom functions to be called at various > >> stages of the root file-system generation process. Add similar > >> capabilities to Isar. > >> > >> Cedric Hombourger (4): > >> isar-image-base: introduce and use isar-image class > >> isar-image: refactor do_rootfs() > >> base: add 'lib' folder of each layer to python's module search > >> path isar-image: add support for OE's ROOTFS_*_COMMAND > >> > >> doc/user_manual.md | 43 +++++++++++ > >> meta-isar/classes/isar-image.bbclass | 89 > >> ++++++++++++++++++++++ .../files => > >> conf/distro}/debian-configscript.sh | 0 .../files => > >> conf/distro}/raspbian-configscript.sh | 0 > >> meta-isar/recipes-core/images/isar-image-base.bb | 57 > >> +------------- meta/classes/base.bbclass | > >> 4 + meta/lib/oe/utils.py | 11 +++ 7 > >> files changed, 150 insertions(+), 54 deletions(-) create mode > >> 100644 meta-isar/classes/isar-image.bbclass rename > >> meta-isar/{recipes-core/images/files => > >> conf/distro}/debian-configscript.sh (100%) rename > >> meta-isar/{recipes-core/images/files => > >> conf/distro}/raspbian-configscript.sh (100%) create mode 100644 > >> meta/lib/oe/utils.py > >> > >