From 4d45a4082bd6db61809fcd6876de484ab45dc101 Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Mon, 12 May 2014 23:54:37 -0300 Subject: [PATCH] lxc-template: Write rootfs config to container config file when the fallback kicks in Fix GH-282 --- CHANGELOG.md | 5 +++++ scripts/lxc-template | 1 + 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 36992f8..18f9aeb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,7 +19,12 @@ IMPROVEMENTS: are safer and properly whitelists the commands required by vagrant-lxc to run. [[GH-272]] / [[GH-269]] +BUG FIXES: + + - Fix `lxc-create` issues with pre 1.0.0 versions [[GH-282]] + [GH-283]: https://github.com/fgrehm/vagrant-lxc/pull/283 +[GH-282]: https://github.com/fgrehm/vagrant-lxc/pull/282 [GH-269]: https://github.com/fgrehm/vagrant-lxc/issues/269 [GH-272]: https://github.com/fgrehm/vagrant-lxc/pull/272 [GH-259]: https://github.com/fgrehm/vagrant-lxc/pull/259 diff --git a/scripts/lxc-template b/scripts/lxc-template index 8314edf..5827e79 100755 --- a/scripts/lxc-template +++ b/scripts/lxc-template @@ -105,6 +105,7 @@ if [ -z "${LXC_ROOTFS}" ]; then LXC_ROOTFS=`grep 'lxc.rootfs =' $config | awk -F= '{ print $2 }'` else LXC_ROOTFS=$LXC_PATH/rootfs + echo "lxc.rootfs = ${LXC_ROOTFS}" >> $config fi fi