From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mail.openembedded.org (Postfix) with ESMTP id 2950971D79 for ; Thu, 14 Dec 2017 17:27:25 +0000 (UTC) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Dec 2017 09:27:27 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,400,1508828400"; d="scan'208";a="2738876" Received: from kanavin-desktop.fi.intel.com (HELO [10.237.68.161]) ([10.237.68.161]) by orsmga007.jf.intel.com with ESMTP; 14 Dec 2017 09:27:26 -0800 To: Stefan Agner References: <20171213180624.30839-1-stefan@agner.ch> <56bd3e44-1478-9095-4fef-3f7453b7ec94@linux.intel.com> <74fb0f2c-574b-56be-1bba-6b859ee07029@linux.intel.com> <2e3178d0-c6eb-97f8-c524-bcee54091397@linux.intel.com> <37d7ff0a6470bb60cf62d73585b3c3f8@agner.ch> <2ddf3fe7-20f3-87e0-969d-a0ed83cf9256@linux.intel.com> <4a6b7a11117ca59fa8b5ffd60c889387@agner.ch> From: Alexander Kanavin Message-ID: <84080427-d60b-6527-b0f4-938fae379559@linux.intel.com> Date: Thu, 14 Dec 2017 19:28:12 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <4a6b7a11117ca59fa8b5ffd60c889387@agner.ch> Cc: Stefan Agner , openembedded-core@lists.openembedded.org Subject: Re: [RFC] opkg: avoid running postinst scripts twice when using systemd X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Dec 2017 17:27:26 -0000 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit On 12/14/2017 07:16 PM, Stefan Agner wrote: > Are you sure that rpm has no such facility? Maybe there is some other > mechanism around... You are welcome to find it. rpm does not distinguish between unpacking and configuring steps, and just does everything in a single installation step. > If rpm really does not handle it, would mean that delayed postinst would > have been broken back when we did not ship /etc/*-postinsts: > http://git.openembedded.org/openembedded-core/commit/meta/lib/oe/rootfs.py?id=5aae19959a443c6ac4b0feef10715c8acf3c6376 Rpm had a special way to save postinstall scripts (due to the same problem I described just above), and still does, which means _save_postinsts() did (and does) nothing in rpm case. > If there is special case handling needed it is not particularly nice due > to the additional condition. > > But IMHO still better, it can easily be explained in rootfs.py with a > comment like: > > # deb/ipk package management is able to handle postinsts on first > boot. Please no; the class in question is the generic Rootfs(), and I do not want to add packagemanager-specific clauses there. Alex