===================================================================
--- new.orig/src/lxc/lxccontainer.c
+++ new/src/lxc/lxccontainer.c
-@@ -767,6 +767,11 @@ static int do_create_container_dir(const
+@@ -862,6 +862,11 @@ static int do_create_container_dir(const
return -1;
}
}
===================================================================
--- new.orig/src/lxc/lxccontainer.c
+++ new/src/lxc/lxccontainer.c
-@@ -819,10 +819,10 @@ static struct bdev *do_bdev_create(struc
+@@ -916,10 +916,10 @@ static struct bdev *do_bdev_create(struc
dest = alloca(len);
ret = snprintf(dest, len, "%s", rpath);
} else {
-- const char *lxcpath = lxcapi_get_config_path(c);
+- const char *lxcpath = do_lxcapi_get_config_path(c);
- len = strlen(c->name) + strlen(lxcpath) + 9;
+ const char *rootfs_path = "/var/lib/lxc";
+ len = strlen(c->name) + strlen(rootfs_path) + 9;
--- /dev/null
+This flag requires systemd 218 or newer
+
+Index: new/config/init/systemd/lxc.service.in
+===================================================================
+--- new.orig/config/init/systemd/lxc.service.in
++++ new/config/init/systemd/lxc.service.in
+@@ -12,7 +12,7 @@ ExecStart=@LIBEXECDIR@/lxc/lxc-container
+ ExecStop=@LIBEXECDIR@/lxc/lxc-containers stop
+ # Environment=BOOTUP=serial
+ # Environment=CONSOLETYPE=serial
+-Delegate=yes
++#Delegate=yes
+ StandardOutput=syslog
+ StandardError=syslog
+
===================================================================
--- new.orig/src/lxc/conf.c
+++ new/src/lxc/conf.c
-@@ -2669,8 +2669,13 @@ static int instantiate_veth(struct lxc_h
+@@ -2691,8 +2691,13 @@ static int instantiate_veth(struct lxc_h
"veth", veth1, (char*) NULL);
if (err)
goto out_delete;
fix-systemd-service-depends.patch
#fix-default-lxc-config.patch
+remove-systemd-delegate-flag.patch
include-linux-sched.patch
do-dot-call-chown_mapped_root-on-etc-pve.patch
use-var-lib-vz-as-default-dir.patch
===================================================================
--- new.orig/src/lxc/bdev.c
+++ new/src/lxc/bdev.c
-@@ -3499,6 +3499,8 @@ static struct bdev * do_bdev_create(cons
+@@ -3519,6 +3519,8 @@ static struct bdev * do_bdev_create(cons
return bdev;
}
/*
* bdev_create:
* Create a backing store for a container.
-@@ -3516,6 +3518,20 @@ struct bdev *bdev_create(const char *des
+@@ -3536,6 +3538,20 @@ struct bdev *bdev_create(const char *des
struct bdev *bdev;
char *best_options[] = {"btrfs", "zfs", "lvm", "dir", NULL};