From 4489c4e929b56358985cc659cc8222923215a42b Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Wed, 21 Oct 2015 11:41:48 +0200 Subject: [PATCH] added lxc mount hook fixes --- ...-mount-hook-add-missing-space-before.patch | 27 +++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 28 insertions(+) create mode 100644 debian/patches/0001-lxc-mount-hook-add-missing-space-before.patch diff --git a/debian/patches/0001-lxc-mount-hook-add-missing-space-before.patch b/debian/patches/0001-lxc-mount-hook-add-missing-space-before.patch new file mode 100644 index 0000000..fd01b94 --- /dev/null +++ b/debian/patches/0001-lxc-mount-hook-add-missing-space-before.patch @@ -0,0 +1,27 @@ +From 05e1642e07216fad032d64abd52999d15a732bf4 Mon Sep 17 00:00:00 2001 +From: Wolfgang Bumiller +Date: Wed, 21 Oct 2015 11:31:01 +0200 +Subject: [PATCH lxcfs 1/2] lxc mount hook: add missing space before ] + +Otherwise [ interprets the ] as part of the path and also +errors about a missing ']' +--- + share/lxc.mount.hook.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/share/lxc.mount.hook.in b/share/lxc.mount.hook.in +index 7194ab8..5ed2d60 100755 +--- a/share/lxc.mount.hook.in ++++ b/share/lxc.mount.hook.in +@@ -30,7 +30,7 @@ if [ -d "${LXC_ROOTFS_MOUNT}/sys/fs/cgroup" ]; then + continue + fi + +- if [ ! -d ${LXC_ROOTFS_MOUNT}/sys/fs/cgroup/$DEST]; then ++ if [ ! -d ${LXC_ROOTFS_MOUNT}/sys/fs/cgroup/$DEST ]; then + mkdir ${LXC_ROOTFS_MOUNT}/sys/fs/cgroup/$DEST + fi + +-- +2.1.4 + diff --git a/debian/patches/series b/debian/patches/series index bf650b4..12a4f79 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ do-not-start-without-lxcfs.patch +0001-lxc-mount-hook-add-missing-space-before.patch -- 2.39.2