* [PATCH 0/1] rootfs_rpm.bbclass: fix the unexpected postinst error
@ 2013-01-22 8:44 Qi.Chen
2013-01-22 8:44 ` [PATCH 1/1] " Qi.Chen
0 siblings, 1 reply; 3+ messages in thread
From: Qi.Chen @ 2013-01-22 8:44 UTC (permalink / raw)
To: openembedded-core; +Cc: Zhenfeng.Zhao
From: Chen Qi <Qi.Chen@windriver.com>
The following changes since commit 37e025f6f9c410005e0f1dee0767e38eaec01cbd:
bitbake: hob: Hob should display warnings generated during parsing (2013-01-21 19:05:31 +0000)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib ChenQi/postinst-error
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=ChenQi/postinst-error
Chen Qi (1):
rootfs_rpm.bbclass: fix the unexpected postinst error
meta/classes/rootfs_rpm.bbclass | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--
1.7.9.5
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/1] rootfs_rpm.bbclass: fix the unexpected postinst error
2013-01-22 8:44 [PATCH 0/1] rootfs_rpm.bbclass: fix the unexpected postinst error Qi.Chen
@ 2013-01-22 8:44 ` Qi.Chen
2013-01-29 9:03 ` ChenQi
0 siblings, 1 reply; 3+ messages in thread
From: Qi.Chen @ 2013-01-22 8:44 UTC (permalink / raw)
To: openembedded-core; +Cc: Zhenfeng.Zhao
From: Chen Qi <Qi.Chen@windriver.com>
If the /etc/rpm-postinsts/ directory was empty, the following error
would occur at system startup.
ERROR: postinst /etc/rpm-postinsts/* failed
This patch fixes this issue.
[YOCTO #3767]
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
meta/classes/rootfs_rpm.bbclass | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/meta/classes/rootfs_rpm.bbclass b/meta/classes/rootfs_rpm.bbclass
index 7d789cc..accd7d9 100644
--- a/meta/classes/rootfs_rpm.bbclass
+++ b/meta/classes/rootfs_rpm.bbclass
@@ -108,7 +108,8 @@ fakeroot rootfs_rpm_do_rootfs () {
i=\$i
cat > ${IMAGE_ROOTFS}${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}run-postinsts << EOF
#!/bin/sh
-for i in /etc/rpm-postinsts/*; do
+for i in `ls /etc/rpm-postinsts/`; do
+ i=/etc/rpm-postinsts/$i
echo "Running postinst $i..."
if [ -f $i ] && $i; then
rm $i
--
1.7.9.5
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH 1/1] rootfs_rpm.bbclass: fix the unexpected postinst error
2013-01-22 8:44 ` [PATCH 1/1] " Qi.Chen
@ 2013-01-29 9:03 ` ChenQi
0 siblings, 0 replies; 3+ messages in thread
From: ChenQi @ 2013-01-29 9:03 UTC (permalink / raw)
To: openembedded-core
Really really sorry that this patch introduces a bug :(
(It built and booted correctly, so I thought everything's OK. I didn't
check the do_rootfs log.)
A follow-up patch has been sent.
Sorry for the inconvenience.
Chen Qi
On 01/22/2013 04:44 PM, Qi.Chen@windriver.com wrote:
> From: Chen Qi <Qi.Chen@windriver.com>
>
> If the /etc/rpm-postinsts/ directory was empty, the following error
> would occur at system startup.
>
> ERROR: postinst /etc/rpm-postinsts/* failed
>
> This patch fixes this issue.
>
> [YOCTO #3767]
>
> Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
> ---
> meta/classes/rootfs_rpm.bbclass | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/meta/classes/rootfs_rpm.bbclass b/meta/classes/rootfs_rpm.bbclass
> index 7d789cc..accd7d9 100644
> --- a/meta/classes/rootfs_rpm.bbclass
> +++ b/meta/classes/rootfs_rpm.bbclass
> @@ -108,7 +108,8 @@ fakeroot rootfs_rpm_do_rootfs () {
> i=\$i
> cat > ${IMAGE_ROOTFS}${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}run-postinsts << EOF
> #!/bin/sh
> -for i in /etc/rpm-postinsts/*; do
> +for i in `ls /etc/rpm-postinsts/`; do
> + i=/etc/rpm-postinsts/$i
> echo "Running postinst $i..."
> if [ -f $i ] && $i; then
> rm $i
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-01-29 9:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-22 8:44 [PATCH 0/1] rootfs_rpm.bbclass: fix the unexpected postinst error Qi.Chen
2013-01-22 8:44 ` [PATCH 1/1] " Qi.Chen
2013-01-29 9:03 ` ChenQi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox