Patchwork [meta-oe] busybox: create /etc/default on do_install

login
register
mail settings
Submitter Andreas Oberritter
Date Feb. 16, 2012, 2:06 a.m.
Message ID <1329358015-31996-1-git-send-email-obi@opendreambox.org>
Download mbox | patch
Permalink /patch/21337/
State Accepted
Commit 143367e4f584ea7054dca2a466f410a46d02e6b1
Headers show

Comments

Andreas Oberritter - Feb. 16, 2012, 2:06 a.m.
* Currently, it's blindly assumed that /etc/default
  exists, when busybox-syslog gets copied into it.
  This only works by chance and only if CONFIG_HWCLOCK=y
  is set.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
---
 .../recipes-core/busybox/busybox_1.19.3.bbappend   |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
Otavio Salvador - Feb. 16, 2012, 10:11 a.m.
Acked-by: Otavio Salvador <otavio@ossystems.com.br>

On Thu, Feb 16, 2012 at 00:06, Andreas Oberritter <obi@opendreambox.org>wrote:

> * Currently, it's blindly assumed that /etc/default
>  exists, when busybox-syslog gets copied into it.
>  This only works by chance and only if CONFIG_HWCLOCK=y
>  is set.
>
> Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
> ---
>  .../recipes-core/busybox/busybox_1.19.3.bbappend   |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/meta-oe/recipes-core/busybox/busybox_1.19.3.bbappend
> b/meta-oe/recipes-core/busybox/busybox_1.19.3.bbappend
> index 7e72a43..98b959f 100644
> --- a/meta-oe/recipes-core/busybox/busybox_1.19.3.bbappend
> +++ b/meta-oe/recipes-core/busybox/busybox_1.19.3.bbappend
> @@ -13,6 +13,7 @@ SYSTEMD_PACKAGES = "${PN}-syslog-systemd"
>  SYSTEMD_SERVICE_${PN}-syslog-systemd = "busybox-syslog.service"
>
>  do_install_append() {
> +       install -d ${D}${sysconfdir}/default
>        install -m 0644 ${WORKDIR}/busybox-syslog.default
> ${D}${sysconfdir}/default/busybox-syslog
>
>        install -d ${D}${base_libdir}/systemd/system
> --
> 1.7.5.4
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>

Patch

diff --git a/meta-oe/recipes-core/busybox/busybox_1.19.3.bbappend b/meta-oe/recipes-core/busybox/busybox_1.19.3.bbappend
index 7e72a43..98b959f 100644
--- a/meta-oe/recipes-core/busybox/busybox_1.19.3.bbappend
+++ b/meta-oe/recipes-core/busybox/busybox_1.19.3.bbappend
@@ -13,6 +13,7 @@  SYSTEMD_PACKAGES = "${PN}-syslog-systemd"
 SYSTEMD_SERVICE_${PN}-syslog-systemd = "busybox-syslog.service"
 
 do_install_append() {
+	install -d ${D}${sysconfdir}/default
 	install -m 0644 ${WORKDIR}/busybox-syslog.default ${D}${sysconfdir}/default/busybox-syslog
 
 	install -d ${D}${base_libdir}/systemd/system