lxc-template: Write rootfs config to container config file when the fallback kicks in

Fix GH-282
This commit is contained in:
Fabio Rehm 2014-05-12 23:54:37 -03:00
parent d7935e55f3
commit 4d45a4082b
2 changed files with 6 additions and 0 deletions

View file

@ -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

View file

@ -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