]> git.proxmox.com Git - mirror_lxc.git/commit - hooks/clonehostname
Use LXC_ROOTFS_MOUNT in clonehostname hook
authorMatt Keeler <mkeeler@users.noreply.github.com>
Wed, 22 Feb 2017 20:57:59 +0000 (15:57 -0500)
committerMatt Keeler <mjkeeler7@gmail.com>
Thu, 23 Feb 2017 15:13:16 +0000 (10:13 -0500)
commitcd85f31e267ad0c315b1b7e89f93c035d007fe1f
tree4528764ec044207bedce33eaba2bec4081bfd032
parent4fbf4a3172b5a39bc598061f44e96fb8cee71bb7
Use LXC_ROOTFS_MOUNT in clonehostname hook

Previously this hook did not work when cloning containers using an overlayfs snapshot as the LXC_ROOTFS_PATH didn't point to the actual filesystem that the container would see. LXC_ROOTFS_MOUNT should be used instead and in fact lxc.container.conf man page says that you usually would want to use the _MOUNT variant.

Signed-off-by: Matt Keeler <mjkeeler7@gmail.com>
hooks/clonehostname