From: Bruce Ashfield <bruce.ashfield@windriver.com>
To: Paul Barrette <paul.barrette@windriver.com>,
<meta-virtualization@yoctoproject.org>
Subject: Re: [PATCH] initscripts: add warning and begin functions to lsb_log_message
Date: Tue, 29 Oct 2013 23:05:22 -0400 [thread overview]
Message-ID: <52707772.2050001@windriver.com> (raw)
In-Reply-To: <1383079227-24408-1-git-send-email-paul.barrette@windriver.com>
On 13-10-29 4:40 PM, Paul Barrette wrote:
> Some init scripts call a "begin" or "warning" function to log early init
> phase messages, e.g. openvswitch-controller. These functions are not
> part of the default /etc/init.d/functions script, which is provided by
> oe-core's lsb pkg. Append these two missing commands to
> /etc/init.d/functions during the install phase.
>
> Signed-off-by: Paul Barrette <paul.barrette@windriver.com>
> ---
> recipes-core/initscripts/initscripts_1.0.bbappend | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/recipes-core/initscripts/initscripts_1.0.bbappend b/recipes-core/initscripts/initscripts_1.0.bbappend
> index 04d848d..02b5bc4 100644
> --- a/recipes-core/initscripts/initscripts_1.0.bbappend
> +++ b/recipes-core/initscripts/initscripts_1.0.bbappend
> @@ -7,4 +7,10 @@ do_install_append() {
> echo failure \(\) \{ >> ${D}${sysconfdir}/init.d/functions
> echo \ \ \ \ echo \$* >> ${D}${sysconfdir}/init.d/functions
> echo \} >> ${D}${sysconfdir}/init.d/functions
> + echo warning \(\) \{ >> ${D}${sysconfdir}/init.d/functions
> + echo \ \ \ \ echo \$* >> ${D}${sysconfdir}/init.d/functions
> + echo \} >> ${D}${sysconfdir}/init.d/functions
> + echo begin \(\) \{ >> ${D}${sysconfdir}/init.d/functions
You didn't go the extra mile and line up that new ">>" !! :)
I've run into these myself, and actually hacked the initscript to avoid
issues .. but I like this better. So I'm just going to go ahead and merge
this right away.
Bruce
> + echo \ \ \ \ echo \$* >> ${D}${sysconfdir}/init.d/functions
> + echo \}
> }
prev parent reply other threads:[~2013-10-30 3:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-29 20:40 [PATCH] initscripts: add warning and begin functions to lsb_log_message Paul Barrette
2013-10-30 3:05 ` Bruce Ashfield [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52707772.2050001@windriver.com \
--to=bruce.ashfield@windriver.com \
--cc=meta-virtualization@yoctoproject.org \
--cc=paul.barrette@windriver.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.