From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.windriver.com ([147.11.1.11]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1TuwFB-0003Jc-Ha for openembedded-core@lists.openembedded.org; Tue, 15 Jan 2013 03:27:21 +0100 Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail.windriver.com (8.14.5/8.14.3) with ESMTP id r0F2Btad023342 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL) for ; Mon, 14 Jan 2013 18:11:56 -0800 (PST) Received: from [128.224.163.154] (128.224.163.154) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server (TLS) id 14.2.318.4; Mon, 14 Jan 2013 18:11:55 -0800 Message-ID: <50F4BAE8.6060104@windriver.com> Date: Tue, 15 Jan 2013 10:11:52 +0800 From: ChenQi User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 MIME-Version: 1.0 To: References: <3fcca17cd3080e160104a92b0ca812c3c49c257f.1358152182.git.Qi.Chen@windriver.com> In-Reply-To: <3fcca17cd3080e160104a92b0ca812c3c49c257f.1358152182.git.Qi.Chen@windriver.com> X-Originating-IP: [128.224.163.154] Subject: Re: [PATCH V7 6/6] volatile-conf-sato: add recipe X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 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: Tue, 15 Jan 2013 02:27:23 -0000 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit I've got to apologize. This patch has a serious problem. The fact that the IMAGE_INSTALL statement was before the 'inherit' statement caused an override of IMAGE_INSTALL variable in image.bbclass, thus resulting a bunch of packaged not installed on target. A new patch will be sent soon. Sorry for that. Chen Qi On 01/14/2013 04:35 PM, Qi.Chen@windriver.com wrote: > From: Chen Qi > > This recipe provides a config file for core-image-sato. > The config file is used to handle volatile storage in case of a > read-only-rootfs image. > > Also, let core-image-sato.bb depend on this recipe. > > [YOCTO #3406] > > Signed-off-by: Chen Qi > --- > meta/recipes-sato/images/core-image-sato.bb | 3 +++ > .../files/volatiles-readonly-sato | 14 ++++++++++++++ > .../volatile-conf-sato_1.0.bb | 15 +++++++++++++++ > 3 files changed, 32 insertions(+) > create mode 100644 meta/recipes-sato/readonly-volatile-conf/files/volatiles-readonly-sato > create mode 100644 meta/recipes-sato/readonly-volatile-conf/volatile-conf-sato_1.0.bb > > diff --git a/meta/recipes-sato/images/core-image-sato.bb b/meta/recipes-sato/images/core-image-sato.bb > index f52a1a5..8aaeaf8 100644 > --- a/meta/recipes-sato/images/core-image-sato.bb > +++ b/meta/recipes-sato/images/core-image-sato.bb > @@ -6,6 +6,9 @@ IMAGE_FEATURES += "splash package-management x11-base x11-sato ssh-server-dropbe > > LICENSE = "MIT" > > +RDEPENDS += "volatile-conf-sato" > +IMAGE_INSTALL += "volatile-conf-sato" > + > inherit core-image > > IMAGE_INSTALL += "packagegroup-core-x11-sato-games" > diff --git a/meta/recipes-sato/readonly-volatile-conf/files/volatiles-readonly-sato b/meta/recipes-sato/readonly-volatile-conf/files/volatiles-readonly-sato > new file mode 100644 > index 0000000..4a56b81 > --- /dev/null > +++ b/meta/recipes-sato/readonly-volatile-conf/files/volatiles-readonly-sato > @@ -0,0 +1,14 @@ > +# This configuration file lists filesystem objects specific to sato image > +# with read-only rootfs. > +# This configuration file will only be applied if the image is sato and the > +# rootfs is read-only. > +# For the detailed format information, refer to /etc/default/volatiles/00_core. > +d root root 0755 /var/volatile/lib/ none > +d root root 0755 /var/volatile/lib/urandom/ none > +d root root 0755 /var/volatile/lib/dropbear/ none > +d root root 0755 /var/volatile/lib/nfs/ none > +d root root 0755 /var/volatile/lib/dbus/ none > +l root root 0755 /var/lib/urandom /var/volatile/lib/urandom > +l root root 0755 /var/lib/dropbear /var/volatile/lib/dropbear > +l root root 0755 /var/lib/nfs /var/volatile/lib/nfs > +l root root 0755 /var/lib/dbus /var/volatile/lib/dbus > diff --git a/meta/recipes-sato/readonly-volatile-conf/volatile-conf-sato_1.0.bb b/meta/recipes-sato/readonly-volatile-conf/volatile-conf-sato_1.0.bb > new file mode 100644 > index 0000000..acc8901 > --- /dev/null > +++ b/meta/recipes-sato/readonly-volatile-conf/volatile-conf-sato_1.0.bb > @@ -0,0 +1,15 @@ > +SUMMARY = "Provide config files for core-image-sato" > +DESCRIPTION = "This package contains a config file for core-image-sato. \ > +It is used to handle volatile storage in case of a read-only rootfs." > + > +LICENSE = "MIT" > +LIC_FILES_CHKSUM ="file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" > + > +SRC_URI ="file://volatiles-readonly-sato" > + > +PR = "r1" > + > +do_install () { > + install -d ${D}${sysconfdir}/default/volatiles > + install -m 0644 ${WORKDIR}/volatiles-readonly-sato ${D}${sysconfdir}/default/volatiles/00_core_readonly > +}