From: "Bruce Ashfield" <bruce.ashfield@gmail.com>
To: Daniel Dragomir <Daniel.Dragomir@windriver.com>
Cc: meta-virtualization@yoctoproject.org
Subject: Re: [meta-virtualization] [thud] [PATCH] lxc: Fix postinstall script for read-only rootfs
Date: Sun, 10 Jan 2021 23:25:34 -0500 [thread overview]
Message-ID: <20210111042533.GA27243@gmail.com> (raw)
In-Reply-To: <20210107035337.33793-2-Daniel.Dragomir@windriver.com> <20210107035337.33793-3-Daniel.Dragomir@windriver.com> <20210107035337.33793-1-Daniel.Dragomir@windriver.com>
merged to all branches.
I honestly can't remember why we ever had those as on-target, so I'm good
with the change.
If someone has a problem, I'm sure I'll hear about it :D
Bruce
In message: [meta-virtualization] [thud] [PATCH] lxc: Fix postinstall script for read-only rootfs
on 07/01/2021 Daniel Dragomir wrote:
> Ensure postinstall script for lxc-networking package can run at
> build time for a read-only rootfs (with sysvinit).
>
> Signed-off-by: Daniel Dragomir <Daniel.Dragomir@windriver.com>
> ---
> recipes-containers/lxc/lxc_3.1.0.bb | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/recipes-containers/lxc/lxc_3.1.0.bb b/recipes-containers/lxc/lxc_3.1.0.bb
> index 977583f..235a429 100644
> --- a/recipes-containers/lxc/lxc_3.1.0.bb
> +++ b/recipes-containers/lxc/lxc_3.1.0.bb
> @@ -167,9 +167,9 @@ pkg_postinst_${PN}() {
> fi
> }
>
> -pkg_postinst_ontarget_${PN}-networking() {
> +pkg_postinst_${PN}-networking() {
> if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then
> -cat >> /etc/network/interfaces << EOF
> +cat >> $D/etc/network/interfaces << EOF
>
> auto lxcbr0
> iface lxcbr0 inet dhcp
> @@ -178,7 +178,7 @@ iface lxcbr0 inet dhcp
> bridge_maxwait 0
> EOF
>
> -cat<<EOF>/etc/network/if-pre-up.d/lxcbr0
> +cat<<EOF>$D/etc/network/if-pre-up.d/lxcbr0
> #! /bin/sh
>
> if test "x\$IFACE" = xlxcbr0 ; then
> @@ -191,6 +191,6 @@ if test "x\$IFACE" = xlxcbr0 ; then
> fi
> fi
> EOF
> -chmod 755 /etc/network/if-pre-up.d/lxcbr0
> +chmod 755 $D/etc/network/if-pre-up.d/lxcbr0
> fi
> }
> --
> 2.17.1
>
>
>
>
prev parent reply other threads:[~2021-01-11 4:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-07 3:53 [meta-virtualization] [thud] [PATCH] lxc: Fix postinstall script for read-only rootfs Daniel Dragomir
2021-01-07 3:53 ` [meta-virtualization] [dunfell] " Daniel Dragomir
2021-01-07 3:53 ` [meta-virtualization] [master] " Daniel Dragomir
2021-01-11 4:25 ` 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=20210111042533.GA27243@gmail.com \
--to=bruce.ashfield@gmail.com \
--cc=Daniel.Dragomir@windriver.com \
--cc=meta-virtualization@yoctoproject.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 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.