Update lxc recipe to 1.0.0
PATCH 1/1 Update lxc recipe to 1.0.0
LXC 1.0 was released last week [1], this is an update of the lxc recipe to use the latest stable version.
There are not many changes from the 0.9.0 recipe, just the hashes and the fetch url. Some patches have been removed since they have already been included in lxc-1.0.0.
[1] https://lists.linuxcontainers.org/pipermail/lxc-users/2014-February/006260.html
Josep Puigdemont (1):
Update Linux Containers to lxc-1.0.0
.../lxc-0.9.0-always-strdup-rootfs-mount.patch | 27 -------- ...xc-0.9.0-check-when-bind-mounting-libdirs.patch | 44 ------------ .../lxc-0.9.0-configure-allow-subdir-objects.patch | 35 ---------- ...0.9.0-disable-udhcp-from-busybox-template.patch | 24 ------- ...c-0.9.0-don-t-let-LXC_PATH-end-in-failure.patch | 29 -------- ...-chpasswd-functionality-for-busybox-hosts.patch | 70 -------------------- ...tdev-re-read-ifindex-in-LXC_NET_PHYS-case.patch | 49 -------------- .../files/lxc-0.9.0-use-susv3-head-arguments.patch | 46 ------------- ...1.0.0-disable-udhcp-from-busybox-template.patch | 24 +++++++ recipes-containers/lxc/lxc_0.9.0.bb | 69 ------------------- recipes-containers/lxc/lxc_1.0.0.bb | 62 +++++++++++++++++ 11 files changed, 86 insertions(+), 393 deletions(-) delete mode 100644 recipes-containers/lxc/files/lxc-0.9.0-always-strdup-rootfs-mount.patch delete mode 100644 recipes-containers/lxc/files/lxc-0.9.0-check-when-bind-mounting-libdirs.patch delete mode 100644 recipes-containers/lxc/files/lxc-0.9.0-configure-allow-subdir-objects.patch delete mode 100644 recipes-containers/lxc/files/lxc-0.9.0-disable-udhcp-from-busybox-template.patch delete mode 100644 recipes-containers/lxc/files/lxc-0.9.0-don-t-let-LXC_PATH-end-in-failure.patch delete mode 100644 recipes-containers/lxc/files/lxc-0.9.0-enable-chroot-chpasswd-functionality-for-busybox-hosts.patch delete mode 100644 recipes-containers/lxc/files/lxc-0.9.0-setup_netdev-re-read-ifindex-in-LXC_NET_PHYS-case.patch delete mode 100644 recipes-containers/lxc/files/lxc-0.9.0-use-susv3-head-arguments.patch create mode 100644 recipes-containers/lxc/files/lxc-1.0.0-disable-udhcp-from-busybox-template.patch delete mode 100644 recipes-containers/lxc/lxc_0.9.0.bb create mode 100644 recipes-containers/lxc/lxc_1.0.0.bb
Signature · 1 line
1.7.10.4
PATCH 1/1 Update Linux Containers to lxc-1.0.0
--- .../lxc-0.9.0-always-strdup-rootfs-mount.patch | 27 -------- ...xc-0.9.0-check-when-bind-mounting-libdirs.patch | 44 ------------ .../lxc-0.9.0-configure-allow-subdir-objects.patch | 35 ---------- ...0.9.0-disable-udhcp-from-busybox-template.patch | 24 ------- ...c-0.9.0-don-t-let-LXC_PATH-end-in-failure.patch | 29 -------- ...-chpasswd-functionality-for-busybox-hosts.patch | 70 -------------------- ...tdev-re-read-ifindex-in-LXC_NET_PHYS-case.patch | 49 -------------- .../files/lxc-0.9.0-use-susv3-head-arguments.patch | 46 ------------- ...1.0.0-disable-udhcp-from-busybox-template.patch | 24 +++++++ recipes-containers/lxc/lxc_0.9.0.bb | 69 ------------------- recipes-containers/lxc/lxc_1.0.0.bb | 62 +++++++++++++++++ 11 files changed, 86 insertions(+), 393 deletions(-) delete mode 100644 recipes-containers/lxc/files/lxc-0.9.0-always-strdup-rootfs-mount.patch delete mode 100644 recipes-containers/lxc/files/lxc-0.9.0-check-when-bind-mounting-libdirs.patch delete mode 100644 recipes-containers/lxc/files/lxc-0.9.0-configure-allow-subdir-objects.patch delete mode 100644 recipes-containers/lxc/files/lxc-0.9.0-disable-udhcp-from-busybox-template.patch delete mode 100644 recipes-containers/lxc/files/lxc-0.9.0-don-t-let-LXC_PATH-end-in-failure.patch delete mode 100644 recipes-containers/lxc/files/lxc-0.9.0-enable-chroot-chpasswd-functionality-for-busybox-hosts.patch delete mode 100644 recipes-containers/lxc/files/lxc-0.9.0-setup_netdev-re-read-ifindex-in-LXC_NET_PHYS-case.patch delete mode 100644 recipes-containers/lxc/files/lxc-0.9.0-use-susv3-head-arguments.patch create mode 100644 recipes-containers/lxc/files/lxc-1.0.0-disable-udhcp-from-busybox-template.patch delete mode 100644 recipes-containers/lxc/lxc_0.9.0.bb create mode 100644 recipes-containers/lxc/lxc_1.0.0.bb
recipes-containers/lxc/files/lxc-0.9.0-always-strdup-rootfs-mount.patch deleted +0 -27
@@ -1,27 +0,0 @@ -diff --git a/src/lxc/conf.c b/src/lxc/conf.c -index 6b3f318..2f8b9e6 100644 ---- a/src/lxc/conf.c -+++ b/src/lxc/conf.c -@@ -2072,7 +2072,12 @@ struct lxc_conf *lxc_conf_init(void) - new->console.slave = -1; - new->console.name[0] = '\0'; - new->maincmd_fd = -1; -- new->rootfs.mount = default_rootfs_mount; -+ new->rootfs.mount = strdup(default_rootfs_mount); -+ if (!new->rootfs.mount) { -+ ERROR("lxc_conf_init : %m"); -+ free(new); -+ return NULL; -+ } - new->kmsg = 1; - lxc_list_init(&new->cgroup); - lxc_list_init(&new->network); -@@ -3084,7 +3089,7 @@ void lxc_conf_free(struct lxc_conf *conf) - return; - if (conf->console.path) - free(conf->console.path); -- if (conf->rootfs.mount != default_rootfs_mount) -+ if (conf->rootfs.mount) - free(conf->rootfs.mount); - if (conf->rootfs.path) - free(conf->rootfs.path);
recipes-containers/lxc/files/lxc-0.9.0-check-when-bind-mounting-libdirs.patch deleted +0 -44
44 lines not on this page · raw message
recipes-containers/lxc/files/lxc-0.9.0-configure-allow-subdir-objects.patch deleted +0 -35
@@ -1,35 +0,0 @@ -From f3b86b0704cb62b77d80b90b40c1df68289d3558 Mon Sep 17 00:00:00 2001 -From: Bruce Ashfield <[email protected]> -Date: Fri, 31 Jan 2014 15:37:24 -0500 -Subject: [PATCH] configure: allow subdir objects - -autoconf-1.14 will fail to configure lxc with the following warning (and -hence error): - - | automake: warnings are treated as errors - | src/lxc/Makefile.am:79: warning: source file '../include/openpty.c' is in a subdirectory, - | src/lxc/Makefile.am:79: but option 'subdir-objects' is disabled - -So we tell autoconf that subdir objects are fine .. and the issue is solved. - -Signed-off-by: Bruce Ashfield <[email protected]> ---- - configure.ac | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/configure.ac b/configure.ac -index 7dc82cfbcb8d..27ba250df3ac 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -6,7 +6,7 @@ AC_INIT([lxc], [0.9.0]) - AC_CONFIG_SRCDIR([configure.ac]) - AC_CONFIG_AUX_DIR([config]) - AC_CONFIG_HEADERS([src/config.h]) --AM_INIT_AUTOMAKE([-Wall -Werror -Wno-portability]) -+AM_INIT_AUTOMAKE([-Wall -Werror -Wno-portability subdir-objects]) - AC_CANONICAL_HOST - AM_PROG_CC_C_O - AC_GNU_SOURCE --- -1.7.10.4 -
recipes-containers/lxc/files/lxc-0.9.0-disable-udhcp-from-busybox-template.patch deleted +0 -24
@@ -1,24 +0,0 @@ -From d7e07e7acb1cbad33806f49143a2a30b4468c369 Mon Sep 17 00:00:00 2001 -From: Bogdan Purcareata <[email protected]> -Date: Mon, 8 Apr 2013 18:30:19 +0300 -Subject: [PATCH] lxc-0.9.0-disable-udhcp-from-busybox-template - ---- - templates/lxc-busybox.in | 1 - - 1 file changed, 1 deletion(-) - -diff --git a/templates/lxc-busybox.in b/templates/lxc-busybox.in -index cb425ec..bb8c951 100644 ---- a/templates/lxc-busybox.in -+++ b/templates/lxc-busybox.in -@@ -84,7 +84,6 @@ EOF - #!/bin/sh - /bin/syslogd - /bin/mount -a --/bin/udhcpc - EOF - - # executable --- -1.7.11.7 -
recipes-containers/lxc/files/lxc-0.9.0-don-t-let-LXC_PATH-end-in-failure.patch deleted +0 -29
@@ -1,29 +0,0 @@ -From fd95f2402dc70ad41fa2db8fb101f950196458a9 Mon Sep 17 00:00:00 2001 -From: Serge Hallyn <[email protected]> -Date: Tue, 9 Apr 2013 16:23:05 -0500 -Subject: [PATCH] lxc.functions: don't let LXC_PATH= line end in failure - -Otherwise if called from dash with set -e, dash will exit. This -causes lxc-clone to fail. - -Signed-off-by: Serge Hallyn <[email protected]> ---- - src/lxc/lxc.functions.in | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/src/lxc/lxc.functions.in b/src/lxc/lxc.functions.in -index b41f9b8..aa5717d 100644 ---- a/src/lxc/lxc.functions.in -+++ b/src/lxc/lxc.functions.in -@@ -26,7 +26,7 @@ templatedir=@LXCTEMPLATEDIR@ - lxcinitdir=@LXCINITDIR@ - - get_default_lxcpath() { -- LXC_PATH=$(grep -v "^#" "$globalconf" 2>/dev/null | grep "[ \t]*lxcpath[ \t]*=") -+ LXC_PATH=$(grep -v "^#" "$globalconf" 2>/dev/null | grep "[ \t]*lxcpath[ \t]*=") || true - if [ -n "$LXC_PATH" ]; then - echo $LXC_PATH | awk -F= '{ print $2 }' - else --- -1.7.11.7 -
recipes-containers/lxc/files/lxc-0.9.0-enable-chroot-chpasswd-functionality-for-busybox-hosts.patch deleted +0 -70
70 lines not on this page · raw message
recipes-containers/lxc/files/lxc-0.9.0-setup_netdev-re-read-ifindex-in-LXC_NET_PHYS-case.patch deleted +0 -49
49 lines not on this page · raw message
recipes-containers/lxc/files/lxc-0.9.0-use-susv3-head-arguments.patch deleted +0 -46
46 lines not on this page · raw message
recipes-containers/lxc/files/lxc-1.0.0-disable-udhcp-from-busybox-template.patch new file +24 -0
@@ -0,0 +1,24 @@ +From d7e07e7acb1cbad33806f49143a2a30b4468c369 Mon Sep 17 00:00:00 2001 +From: Bogdan Purcareata <[email protected]> +Date: Mon, 8 Apr 2013 18:30:19 +0300 +Subject: [PATCH] lxc-0.9.0-disable-udhcp-from-busybox-template + +--- + templates/lxc-busybox.in | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/templates/lxc-busybox.in b/templates/lxc-busybox.in +index cb425ec..bb8c951 100644 +--- a/templates/lxc-busybox.in ++++ b/templates/lxc-busybox.in +@@ -84,7 +84,6 @@ EOF + #!/bin/sh + /bin/syslogd + /bin/mount -a +-/bin/udhcpc + EOF + + # executable +-- +1.7.11.7 +
recipes-containers/lxc/lxc_0.9.0.bb deleted +0 -69
69 lines not on this page · raw message
recipes-containers/lxc/lxc_1.0.0.bb new file +62 -0
62 lines not on this page · raw message
Signature · 1 line
1.7.10.4
Quoted 5 lines · Josep Puigdemont
LXC 1.0 was released last week [1], this is an update of the lxc recipe to use the latest stable version.
There are not many changes from the 0.9.0 recipe, just the hashes and the fetch url. Some patches have been removed since they have already been included in lxc-1.0.0.
Nice to stay so quickly up to date :)
The series looks good to me, did you do any runtime testing to show basic functionality was still intact ? I assume it is, but I didn't ask once, and was bitten by a init error!
Bruce
Quoted 37 lines
[1] https://lists.linuxcontainers.org/pipermail/lxc-users/2014-February/006260.html
Josep Puigdemont (1):
Update Linux Containers to lxc-1.0.0.../lxc-0.9.0-always-strdup-rootfs-mount.patch | 27 -------- ...xc-0.9.0-check-when-bind-mounting-libdirs.patch | 44 ------------ .../lxc-0.9.0-configure-allow-subdir-objects.patch | 35 ---------- ...0.9.0-disable-udhcp-from-busybox-template.patch | 24 ------- ...c-0.9.0-don-t-let-LXC_PATH-end-in-failure.patch | 29 -------- ...-chpasswd-functionality-for-busybox-hosts.patch | 70 -------------------- ...tdev-re-read-ifindex-in-LXC_NET_PHYS-case.patch | 49 -------------- .../files/lxc-0.9.0-use-susv3-head-arguments.patch | 46 ------------- ...1.0.0-disable-udhcp-from-busybox-template.patch | 24 +++++++ recipes-containers/lxc/lxc_0.9.0.bb | 69 ------------------- recipes-containers/lxc/lxc_1.0.0.bb | 62 +++++++++++++++++ 11 files changed, 86 insertions(+), 393 deletions(-) delete mode 100644 recipes-containers/lxc/files/lxc-0.9.0-always-strdup-rootfs-mount.patch delete mode 100644 recipes-containers/lxc/files/lxc-0.9.0-check-when-bind-mounting-libdirs.patch delete mode 100644 recipes-containers/lxc/files/lxc-0.9.0-configure-allow-subdir-objects.patch delete mode 100644 recipes-containers/lxc/files/lxc-0.9.0-disable-udhcp-from-busybox-template.patch delete mode 100644 recipes-containers/lxc/files/lxc-0.9.0-don-t-let-LXC_PATH-end-in-failure.patch delete mode 100644 recipes-containers/lxc/files/lxc-0.9.0-enable-chroot-chpasswd-functionality-for-busybox-hosts.patch delete mode 100644 recipes-containers/lxc/files/lxc-0.9.0-setup_netdev-re-read-ifindex-in-LXC_NET_PHYS-case.patch delete mode 100644 recipes-containers/lxc/files/lxc-0.9.0-use-susv3-head-arguments.patch create mode 100644 recipes-containers/lxc/files/lxc-1.0.0-disable-udhcp-from-busybox-template.patch delete mode 100644 recipes-containers/lxc/lxc_0.9.0.bb create mode 100644 recipes-containers/lxc/lxc_1.0.0.bb--
1.7.10.4_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization
Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"
Quoted 8 lines · Bruce Ashfield
Quoted 5 lines · Josep Puigdemont
LXC 1.0 was released last week [1], this is an update of the lxc recipe to use the latest stable version.
There are not many changes from the 0.9.0 recipe, just the hashes and the fetch url. Some patches have been removed since they have already been included in lxc-1.0.0.
Quoted 5 lines
Nice to stay so quickly up to date :)
The series looks good to me, did you do any runtime testing to show basic functionality was still intact ? I assume it is, but I didn't ask once, and was bitten by a init error!
Hi Bruce!
Sorry I didn't answer earlier, I was away without email until today. Thank you for applying the patch!
Regrettably I did not do very thorough testing, I used it to start/stop/execute containers, but didn't use lxc-create for instance (most of the previous patches were related to the templates used by lxc-create). I'll give it a go if I have time tomorrow (I don't think I'll be able to do it today), unless you've already done so.
Thanks!
/Josep
Quoted 43 lines
Bruce
Quoted 37 lines
[1] https://lists.linuxcontainers.org/pipermail/lxc-users/2014-February/006260.html
Josep Puigdemont (1):
Update Linux Containers to lxc-1.0.0.../lxc-0.9.0-always-strdup-rootfs-mount.patch | 27 -------- ...xc-0.9.0-check-when-bind-mounting-libdirs.patch | 44 ------------ .../lxc-0.9.0-configure-allow-subdir-objects.patch | 35 ---------- ...0.9.0-disable-udhcp-from-busybox-template.patch | 24 ------- ...c-0.9.0-don-t-let-LXC_PATH-end-in-failure.patch | 29 -------- ...-chpasswd-functionality-for-busybox-hosts.patch | 70 -------------------- ...tdev-re-read-ifindex-in-LXC_NET_PHYS-case.patch | 49 -------------- .../files/lxc-0.9.0-use-susv3-head-arguments.patch | 46 ------------- ...1.0.0-disable-udhcp-from-busybox-template.patch | 24 +++++++ recipes-containers/lxc/lxc_0.9.0.bb | 69 ------------------- recipes-containers/lxc/lxc_1.0.0.bb | 62 +++++++++++++++++ 11 files changed, 86 insertions(+), 393 deletions(-) delete mode 100644 recipes-containers/lxc/files/lxc-0.9.0-always-strdup-rootfs-mount.patch delete mode 100644 recipes-containers/lxc/files/lxc-0.9.0-check-when-bind-mounting-libdirs.patch delete mode 100644 recipes-containers/lxc/files/lxc-0.9.0-configure-allow-subdir-objects.patch delete mode 100644 recipes-containers/lxc/files/lxc-0.9.0-disable-udhcp-from-busybox-template.patch delete mode 100644 recipes-containers/lxc/files/lxc-0.9.0-don-t-let-LXC_PATH-end-in-failure.patch delete mode 100644 recipes-containers/lxc/files/lxc-0.9.0-enable-chroot-chpasswd-functionality-for-busybox-hosts.patch delete mode 100644 recipes-containers/lxc/files/lxc-0.9.0-setup_netdev-re-read-ifindex-in-LXC_NET_PHYS-case.patch delete mode 100644 recipes-containers/lxc/files/lxc-0.9.0-use-susv3-head-arguments.patch create mode 100644 recipes-containers/lxc/files/lxc-1.0.0-disable-udhcp-from-busybox-template.patch delete mode 100644 recipes-containers/lxc/lxc_0.9.0.bb create mode 100644 recipes-containers/lxc/lxc_1.0.0.bb--
1.7.10.4_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization
Quoted 11 lines · Josep Puigdemont
Quoted 10 lines · Bruce Ashfield
Quoted 5 lines · Josep Puigdemont
LXC 1.0 was released last week [1], this is an update of the lxc recipe to use the latest stable version.
There are not many changes from the 0.9.0 recipe, just the hashes and the fetch url. Some patches have been removed since they have already been included in lxc-1.0.0.Nice to stay so quickly up to date :)
Quoted 7 lines
Quoted 3 lines
The series looks good to me, did you do any runtime testing to show basic functionality was still intact ? I assume it is, but I didn't ask once, and was bitten by a init error!
Hi Bruce!
Sorry I didn't answer earlier, I was away without email until today. Thank you for applying the patch!
No worries. I went ahead and merged it, since a quick check confirmed the details of your commit.
Quoted 6 lines
Regrettably I did not do very thorough testing, I used it to start/stop/execute containers, but didn't use lxc-create for instance (most of the previous patches were related to the templates used by lxc-create). I'll give it a go if I have time tomorrow (I don't think I'll be able to do it today), unless you've already done so.
I did do a basic build and smoke test, but getting a bit more testing would be ideal :)
Bruce
Quoted 49 lines
Thanks!
/Josep
Quoted 43 lines
Bruce
Quoted 37 lines
[1] https://lists.linuxcontainers.org/pipermail/lxc-users/2014-February/006260.html
Josep Puigdemont (1):
Update Linux Containers to lxc-1.0.0.../lxc-0.9.0-always-strdup-rootfs-mount.patch | 27 -------- ...xc-0.9.0-check-when-bind-mounting-libdirs.patch | 44 ------------ .../lxc-0.9.0-configure-allow-subdir-objects.patch | 35 ---------- ...0.9.0-disable-udhcp-from-busybox-template.patch | 24 ------- ...c-0.9.0-don-t-let-LXC_PATH-end-in-failure.patch | 29 -------- ...-chpasswd-functionality-for-busybox-hosts.patch | 70 -------------------- ...tdev-re-read-ifindex-in-LXC_NET_PHYS-case.patch | 49 -------------- .../files/lxc-0.9.0-use-susv3-head-arguments.patch | 46 ------------- ...1.0.0-disable-udhcp-from-busybox-template.patch | 24 +++++++ recipes-containers/lxc/lxc_0.9.0.bb | 69 ------------------- recipes-containers/lxc/lxc_1.0.0.bb | 62 +++++++++++++++++ 11 files changed, 86 insertions(+), 393 deletions(-) delete mode 100644 recipes-containers/lxc/files/lxc-0.9.0-always-strdup-rootfs-mount.patch delete mode 100644 recipes-containers/lxc/files/lxc-0.9.0-check-when-bind-mounting-libdirs.patch delete mode 100644 recipes-containers/lxc/files/lxc-0.9.0-configure-allow-subdir-objects.patch delete mode 100644 recipes-containers/lxc/files/lxc-0.9.0-disable-udhcp-from-busybox-template.patch delete mode 100644 recipes-containers/lxc/files/lxc-0.9.0-don-t-let-LXC_PATH-end-in-failure.patch delete mode 100644 recipes-containers/lxc/files/lxc-0.9.0-enable-chroot-chpasswd-functionality-for-busybox-hosts.patch delete mode 100644 recipes-containers/lxc/files/lxc-0.9.0-setup_netdev-re-read-ifindex-in-LXC_NET_PHYS-case.patch delete mode 100644 recipes-containers/lxc/files/lxc-0.9.0-use-susv3-head-arguments.patch create mode 100644 recipes-containers/lxc/files/lxc-1.0.0-disable-udhcp-from-busybox-template.patch delete mode 100644 recipes-containers/lxc/lxc_0.9.0.bb create mode 100644 recipes-containers/lxc/lxc_1.0.0.bb--
1.7.10.4_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization
Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"