Skip to contentSkip to conversation

volatile-conf-sato: add recipe

PATCH In review [email protected] 2 participants 3 messages Jan 15, 2013 – Jan 16, 2013

lore
Share & tools
lore
#0 lore raw

PATCH v7 6/6 volatile-conf-sato: add recipe

From: Chen Qi <[email protected]>

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]

---
 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
meta/recipes-sato/images/core-image-sato.bb +3 -0
index f52a1a5..a3d3d27 100644
@@ -6,6 +6,9 @@ IMAGE_FEATURES += "splash package-management x11-base x11-sato ssh-server-dropbe
 
 LICENSE = "MIT"
 
+RDEPENDS += "volatile-conf-sato"
+
 inherit core-image
 
 IMAGE_INSTALL += "packagegroup-core-x11-sato-games"
+IMAGE_INSTALL += "volatile-conf-sato"
meta/recipes-sato/readonly-volatile-conf/files/volatiles-readonly-sato new file +14 -0
new file mode 100644
index 0000000..4a56b81
@@ -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
meta/recipes-sato/readonly-volatile-conf/volatile-conf-sato_1.0.bb new file +15 -0
new file mode 100644
index 0000000..acc8901
@@ -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
+}
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 10 lines · On Tue, Jan 15, 2013 at 12:15 AM, <[email protected]> wrote:

From: Chen Qi <[email protected]>

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]

Quoted 8 lines
---
 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

Please name the package and the dir the same. It will be confusing for user to try to guess where the .bb file is otherwise.

Quoted 59 lines
meta/recipes-sato/images/core-image-sato.bb +3 -0
index f52a1a5..a3d3d27 100644
@@ -6,6 +6,9 @@ IMAGE_FEATURES += "splash package-management x11-base x11-sato ssh-server-dropbe
 
 LICENSE = "MIT"
 
+RDEPENDS += "volatile-conf-sato"
+
 inherit core-image
 
 IMAGE_INSTALL += "packagegroup-core-x11-sato-games"
+IMAGE_INSTALL += "volatile-conf-sato"
meta/recipes-sato/readonly-volatile-conf/files/volatiles-readonly-sato new file +14 -0
new file mode 100644
index 0000000..4a56b81
@@ -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
meta/recipes-sato/readonly-volatile-conf/volatile-conf-sato_1.0.bb new file +15 -1
new file mode 100644
index 0000000..acc8901
@@ -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
+}
--

1.7.9.5

Quoted 4 lines

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

--
Otavio Salvador O.S. Systems
E-mail: [email protected] http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br

author
#2 lore raw
Quoted 19 lines · Otavio Salvador
Quoted 10 lines · On Tue, Jan 15, 2013 at 12:15 AM, <[email protected]> wrote:

From: Chen Qi <[email protected]>

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]

Quoted 8 lines
---
  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

Quoted 2 lines

Please name the package and the dir the same. It will be confusing for user to try to guess where the .bb file is otherwise.

Hi Otavio,

As the conf file is related to the image recipe, so I keep the same directory hierarchy with the image recipes. Thus, instead of creating distinct directories for each conf recipe, I gather them together, in the way image recipes are organized.

poky/meta/recipes-core/images/
-- image recipe 1
-- image recipe 2

poky/meta/recipes-sato/images/
-- image recipe 1
-- image recipe 2

poky/meta/recipes-core/readonly-volatile-conf/
-- conf recipe 1
-- conf recipe 2

poky/meta/recipes-sato/readonly-volatile-conf/
-- conf recipe 1
-- conf recipe 2

Cheers,
Chen Qi

Quoted 71 lines
Quoted 59 lines
meta/recipes-sato/images/core-image-sato.bb +3 -0
index f52a1a5..a3d3d27 100644
@@ -6,6 +6,9 @@ IMAGE_FEATURES += "splash package-management x11-base x11-sato ssh-server-dropbe
 
  LICENSE = "MIT"
 
+RDEPENDS += "volatile-conf-sato"
+
  inherit core-image
 
  IMAGE_INSTALL += "packagegroup-core-x11-sato-games"
+IMAGE_INSTALL += "volatile-conf-sato"
meta/recipes-sato/readonly-volatile-conf/files/volatiles-readonly-sato new file +14 -0
new file mode 100644
index 0000000..4a56b81
@@ -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
meta/recipes-sato/readonly-volatile-conf/volatile-conf-sato_1.0.bb new file +15 -1
new file mode 100644
index 0000000..acc8901
@@ -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
+}
--

1.7.9.5

Quoted 4 lines

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

--
Otavio Salvador O.S. Systems
E-mail: [email protected] http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br