LXC: set LXC_ENV_FOLDER=lxc/$(shell hostname)/

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
Markus Heiser 2020-03-23 18:05:46 +01:00
parent 103c542b37
commit baf1ffd1fa
4 changed files with 14 additions and 9 deletions

View file

@ -1077,6 +1077,11 @@ in_container() {
[[ -f /.lxcenv ]]
}
LXC_ENV_FOLDER=
if in_container; then
LXC_ENV_FOLDER="lxc/$(hostname)/"
fi
lxc_init_container() {
# Create a /.lxcenv file in the root folder. Call this once after container