From baf1ffd1fa4923f3bd105f0d8daac4a9527bdc50 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Mon, 23 Mar 2020 18:05:46 +0100 Subject: LXC: set LXC_ENV_FOLDER=lxc/$(shell hostname)/ Signed-off-by: Markus Heiser --- utils/lib.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'utils/lib.sh') diff --git a/utils/lib.sh b/utils/lib.sh index 50f15a690..dfa1e9cda 100755 --- a/utils/lib.sh +++ b/utils/lib.sh @@ -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 -- cgit v1.2.3-54-g00ecf