@@ -1073,7 +1073,7 @@ in_container() {
10731073 # to be safe, take a look at the environment of process 1 (/sbin/init)
10741074 # grep -qa 'container=lxc' /proc/1/environ
10751075
1076− # see lxc_init_container
1076+ # see lxc_init_container_env
10771077 [[ -f /.lxcenv ]]
10781078}
10791079
@@ -1083,12 +1083,12 @@ if in_container; then
10831083 LXC_ENV_FOLDER="lxc/$(hostname)/"
10841084fi
10851085
1086−lxc_init_container() {
1086+lxc_init_container_env() {
10871087
1088− # Create a /.lxcenv file in the root folder. Call this once after container
1089− # is inital started.
1088+ # usage: lxc_init_container_env <name>
10901089
1091− # usage: lxc_create_root_dot_lxcenv <name>
1090+ # Create a /.lxcenv file in the root folder. Call this once after the
1091+ # container is inital started and before installing any boilerplate stuff.
10921092
10931093 info_msg "create /.lxcenv in container $1"
10941094 cat <<EOF | lxc exec "${1}" -- bash | prefix_stdout "[${_BBlue}${1}${_creset}] "