* [meta-virtualization] [thud] [PATCH] lxc: Fix postinstall script for read-only rootfs
@ 2021-01-07 3:53 Daniel Dragomir
2021-01-07 3:53 ` [meta-virtualization] [dunfell] " Daniel Dragomir
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Daniel Dragomir @ 2021-01-07 3:53 UTC (permalink / raw)
To: meta-virtualization
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
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [meta-virtualization] [dunfell] [PATCH] lxc: Fix postinstall script for read-only rootfs
2021-01-07 3:53 [meta-virtualization] [thud] [PATCH] lxc: Fix postinstall script for read-only rootfs Daniel Dragomir
@ 2021-01-07 3:53 ` Daniel Dragomir
2021-01-07 3:53 ` [meta-virtualization] [master] " Daniel Dragomir
2021-01-11 4:25 ` [meta-virtualization] [thud] " Bruce Ashfield
2 siblings, 0 replies; 4+ messages in thread
From: Daniel Dragomir @ 2021-01-07 3:53 UTC (permalink / raw)
To: meta-virtualization
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_4.0.1.bb | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/recipes-containers/lxc/lxc_4.0.1.bb b/recipes-containers/lxc/lxc_4.0.1.bb
index bfe003c..807232e 100644
--- a/recipes-containers/lxc/lxc_4.0.1.bb
+++ b/recipes-containers/lxc/lxc_4.0.1.bb
@@ -171,9 +171,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
@@ -182,7 +182,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
@@ -195,6 +195,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
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [meta-virtualization] [master] [PATCH] lxc: Fix postinstall script for read-only rootfs
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 ` Daniel Dragomir
2021-01-11 4:25 ` [meta-virtualization] [thud] " Bruce Ashfield
2 siblings, 0 replies; 4+ messages in thread
From: Daniel Dragomir @ 2021-01-07 3:53 UTC (permalink / raw)
To: meta-virtualization
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_4.0.4.bb | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/recipes-containers/lxc/lxc_4.0.4.bb b/recipes-containers/lxc/lxc_4.0.4.bb
index 4ef5fc0..19b40f6 100644
--- a/recipes-containers/lxc/lxc_4.0.4.bb
+++ b/recipes-containers/lxc/lxc_4.0.4.bb
@@ -173,9 +173,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
@@ -184,7 +184,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
@@ -197,6 +197,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
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [meta-virtualization] [thud] [PATCH] lxc: Fix postinstall script for read-only rootfs
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
2 siblings, 0 replies; 4+ messages in thread
From: Bruce Ashfield @ 2021-01-11 4:25 UTC (permalink / raw)
To: Daniel Dragomir; +Cc: meta-virtualization
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
>
>
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-01-11 4:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [meta-virtualization] [thud] " Bruce Ashfield
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.