* [PATCH] fix inittab install when Xen not in DISTRO_FEATURES
@ 2013-11-13 9:25 Riku Voipio
2013-11-13 17:39 ` Philip Tricca
2013-11-13 17:53 ` Bruce Ashfield
0 siblings, 2 replies; 4+ messages in thread
From: Riku Voipio @ 2013-11-13 9:25 UTC (permalink / raw)
To: meta-virtualization
With the latest patch, OE builds may file like:
https://ci.linaro.org/jenkins/job/openembedded-armv7ab-rootfs/gcc_version=4.8,label=oe_persistent_cloud,rootfs=minimal/127/consoleText
By having the "failing" grep within the if block, set -e
in shell code will not bite configurations where meta-virtualization
is included but xen is not in DISTRO_FEATURES.
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
---
recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend b/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend
index 2edbedf..1b89aec 100644
--- a/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend
+++ b/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend
@@ -1,6 +1,5 @@
do_install_append() {
- echo "${DISTRO_FEATURES}" | grep -q 'xen'
- if [ $? -eq 0 ]; then
+ if echo "${DISTRO_FEATURES}" | grep -q 'xen'; then
echo "" >> ${D}${sysconfdir}/inittab
echo "X0:12345:respawn:/sbin/getty 115200 hvc0" >> ${D}${sysconfdir}/inittab
fi
--
1.8.3.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] fix inittab install when Xen not in DISTRO_FEATURES
2013-11-13 9:25 [PATCH] fix inittab install when Xen not in DISTRO_FEATURES Riku Voipio
@ 2013-11-13 17:39 ` Philip Tricca
2013-11-13 17:53 ` Bruce Ashfield
1 sibling, 0 replies; 4+ messages in thread
From: Philip Tricca @ 2013-11-13 17:39 UTC (permalink / raw)
To: Riku Voipio; +Cc: meta-virtualization
Riku,
Looks good to me. Thanks for cleaning this up.
Regards,
- Philip
On 11/13/2013 04:25 AM, Riku Voipio wrote:
> With the latest patch, OE builds may file like:
>
> https://ci.linaro.org/jenkins/job/openembedded-armv7ab-rootfs/gcc_version=4.8,label=oe_persistent_cloud,rootfs=minimal/127/consoleText
>
> By having the "failing" grep within the if block, set -e
> in shell code will not bite configurations where meta-virtualization
> is included but xen is not in DISTRO_FEATURES.
>
> Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
> ---
> recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend b/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend
> index 2edbedf..1b89aec 100644
> --- a/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend
> +++ b/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend
> @@ -1,6 +1,5 @@
> do_install_append() {
> - echo "${DISTRO_FEATURES}" | grep -q 'xen'
> - if [ $? -eq 0 ]; then
> + if echo "${DISTRO_FEATURES}" | grep -q 'xen'; then
> echo "" >> ${D}${sysconfdir}/inittab
> echo "X0:12345:respawn:/sbin/getty 115200 hvc0" >> ${D}${sysconfdir}/inittab
> fi
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] fix inittab install when Xen not in DISTRO_FEATURES
2013-11-13 9:25 [PATCH] fix inittab install when Xen not in DISTRO_FEATURES Riku Voipio
2013-11-13 17:39 ` Philip Tricca
@ 2013-11-13 17:53 ` Bruce Ashfield
1 sibling, 0 replies; 4+ messages in thread
From: Bruce Ashfield @ 2013-11-13 17:53 UTC (permalink / raw)
To: Riku Voipio; +Cc: meta-virtualization
merged!
Bruce
On Wed, Nov 13, 2013 at 4:25 AM, Riku Voipio <riku.voipio@linaro.org> wrote:
> With the latest patch, OE builds may file like:
>
> https://ci.linaro.org/jenkins/job/openembedded-armv7ab-rootfs/gcc_version=4.8,label=oe_persistent_cloud,rootfs=minimal/127/consoleText
>
> By having the "failing" grep within the if block, set -e
> in shell code will not bite configurations where meta-virtualization
> is included but xen is not in DISTRO_FEATURES.
>
> Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
> ---
> recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend b/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend
> index 2edbedf..1b89aec 100644
> --- a/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend
> +++ b/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend
> @@ -1,6 +1,5 @@
> do_install_append() {
> - echo "${DISTRO_FEATURES}" | grep -q 'xen'
> - if [ $? -eq 0 ]; then
> + if echo "${DISTRO_FEATURES}" | grep -q 'xen'; then
> echo "" >> ${D}${sysconfdir}/inittab
> echo "X0:12345:respawn:/sbin/getty 115200 hvc0" >> ${D}${sysconfdir}/inittab
> fi
> --
> 1.8.3.1
>
> _______________________________________________
> meta-virtualization mailing list
> meta-virtualization@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-virtualization
--
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] fix inittab install when Xen not in DISTRO_FEATURES
@ 2013-11-11 14:01 Riku Voipio
0 siblings, 0 replies; 4+ messages in thread
From: Riku Voipio @ 2013-11-11 14:01 UTC (permalink / raw)
To: meta-virtualization; +Cc: koen.kooi, patches
With the latest patch, OE builds may file like:
https://ci.linaro.org/jenkins/job/openembedded-armv7ab-rootfs/gcc_version=4.8,label=oe_persistent_cloud,rootfs=minimal/127/consoleText
By having the "failing" grep within the if block, set -e
in shell code will not bite configurations where meta-virtualization
is included but xen is not in DISTRO_FEATURES.
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
---
recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend b/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend
index 2edbedf..1b89aec 100644
--- a/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend
+++ b/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend
@@ -1,6 +1,5 @@
do_install_append() {
- echo "${DISTRO_FEATURES}" | grep -q 'xen'
- if [ $? -eq 0 ]; then
+ if echo "${DISTRO_FEATURES}" | grep -q 'xen'; then
echo "" >> ${D}${sysconfdir}/inittab
echo "X0:12345:respawn:/sbin/getty 115200 hvc0" >> ${D}${sysconfdir}/inittab
fi
--
1.8.3.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-11-13 17:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-13 9:25 [PATCH] fix inittab install when Xen not in DISTRO_FEATURES Riku Voipio
2013-11-13 17:39 ` Philip Tricca
2013-11-13 17:53 ` Bruce Ashfield
-- strict thread matches above, loose matches on Subject: below --
2013-11-11 14:01 Riku Voipio
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.