From: Kang Kai <Kai.Kang@windriver.com>
To: Kang Kai <kai.kang@windriver.com>
Cc: Zhenfeng.Zhao@windriver.com, openembedded-core@lists.openembedded.org
Subject: Re: [PATCH 5/5] rpm: save output of postinstall scripts when image first boot
Date: Wed, 6 Mar 2013 09:52:38 +0800 [thread overview]
Message-ID: <5136A166.4010501@windriver.com> (raw)
In-Reply-To: <0e45eb2f773f3985d6cc47e78775a26271806b30.1361866257.git.kai.kang@windriver.com>
On 2013年02月26日 16:14, Kang Kai wrote:
> When image feature "debug-tweaks" is enabled, save output of post
> install script to log file which can be configured when image first
> boot.
>
> [YOCTO #3223]
>
> Signed-off-by: Kang Kai<kai.kang@windriver.com>
> ---
> meta/recipes-devtools/rpm/rpm_5.4.9.bb | 6 +++++-
> 1 files changed, 5 insertions(+), 1 deletions(-)
>
> diff --git a/meta/recipes-devtools/rpm/rpm_5.4.9.bb b/meta/recipes-devtools/rpm/rpm_5.4.9.bb
> index 0b014b6..cdfb5ff 100644
> --- a/meta/recipes-devtools/rpm/rpm_5.4.9.bb
> +++ b/meta/recipes-devtools/rpm/rpm_5.4.9.bb
> @@ -223,6 +223,7 @@ FILES_${PN} = "${bindir}/rpm \
> ${libdir}/rpm/bin/wget \
> /var/lib/rpm \
> /var/cache/rpm \
> + ${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}run-postinsts \
Previous(4/5) patch has been merged to master but this one not, the
bitbake complains:
WARNING: QA Issue: rpm: Files/directories were installed but not shipped
/etc
/etc/rcS.d
/etc/rcS.d/S98run-postinsts
This line should be split to the previous(4/5) patch. When this patch
merged, the warning will disappear.
Sorry for this trouble,
Kai
> "
>
> FILES_${PN}-dbg += "${libdir}/rpm/.debug \
> @@ -374,6 +375,9 @@ do_configure() {
> #
> POSTINSTALL_INITPOSITION ?= "98"
>
> +POSTLOG ?= "/var/log/postinstall.log"
> +REDIRECT_CMD = "${@base_contains('IMAGE_FEATURES', 'debug-tweaks', '>>${POSTLOG} 2>&1', '', d)}"
> +
> do_install_append() {
> sed -i -e 's,%__check_files,#%%__check_files,' ${D}/${libdir}/rpm/macros
> sed -i -e 's,%__scriptlet_requires,#%%__scriptlet_requires,' ${D}/${libdir}/rpm/macros
> @@ -459,7 +463,7 @@ do_install_append() {
> for i in \`ls /etc/rpm-postinsts/\`; do
> i=/etc/rpm-postinsts/$i
> echo "Running postinst $i..."
> - if [ -f $i ]&& $i; then
> + if [ -f $i ]&& $i ${REDIRECT_CMD}; then
> rm $i
> else
> echo "ERROR: postinst $i failed."
prev parent reply other threads:[~2013-03-06 2:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-26 8:14 [PATCH 0/5] V2: Redirect output of postinstall scripts Kang Kai
2013-02-26 8:14 ` [PATCH 1/5] opkg: save output of postinst scripts when image first boot Kang Kai
2013-02-26 8:14 ` [PATCH 2/5] rootfs_deb: remove run-postinsts from ROOTFS_PKGMANAGE Kang Kai
2013-02-26 8:14 ` [PATCH 3/5] dpkg: save output of postinstall scripts when image firstboot Kang Kai
2013-02-26 8:14 ` [PATCH 4/5] rootfs_rpm: move run-postinsts scripts to rpm recipe Kang Kai
2013-02-26 8:14 ` [PATCH 5/5] rpm: save output of postinstall scripts when image first boot Kang Kai
2013-03-06 1:52 ` Kang Kai [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=5136A166.4010501@windriver.com \
--to=kai.kang@windriver.com \
--cc=Zhenfeng.Zhao@windriver.com \
--cc=openembedded-core@lists.openembedded.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox