lxc-template: Write rootfs config to container config file when the fallback kicks in
Fix GH-282
This commit is contained in:
parent
d7935e55f3
commit
4d45a4082b
2 changed files with 6 additions and 0 deletions
|
@ -19,7 +19,12 @@ IMPROVEMENTS:
|
||||||
are safer and properly whitelists the commands required by vagrant-lxc to run.
|
are safer and properly whitelists the commands required by vagrant-lxc to run.
|
||||||
[[GH-272]] / [[GH-269]]
|
[[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-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-269]: https://github.com/fgrehm/vagrant-lxc/issues/269
|
||||||
[GH-272]: https://github.com/fgrehm/vagrant-lxc/pull/272
|
[GH-272]: https://github.com/fgrehm/vagrant-lxc/pull/272
|
||||||
[GH-259]: https://github.com/fgrehm/vagrant-lxc/pull/259
|
[GH-259]: https://github.com/fgrehm/vagrant-lxc/pull/259
|
||||||
|
|
|
@ -105,6 +105,7 @@ if [ -z "${LXC_ROOTFS}" ]; then
|
||||||
LXC_ROOTFS=`grep 'lxc.rootfs =' $config | awk -F= '{ print $2 }'`
|
LXC_ROOTFS=`grep 'lxc.rootfs =' $config | awk -F= '{ print $2 }'`
|
||||||
else
|
else
|
||||||
LXC_ROOTFS=$LXC_PATH/rootfs
|
LXC_ROOTFS=$LXC_PATH/rootfs
|
||||||
|
echo "lxc.rootfs = ${LXC_ROOTFS}" >> $config
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue