diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2020-03-18 15:34:46 +0100 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2020-03-18 15:34:46 +0100 |
commit | d2cfe9ce5bb409472f10590aa1ae069b2a971a49 (patch) | |
tree | 81b689c72bd180aae410c6bf822f46980a43458c /utils/lxc.sh | |
parent | 86e79488aab3ff434c6682a9464ba2eee49158e9 (diff) | |
download | searxng-d2cfe9ce5bb409472f10590aa1ae069b2a971a49.tar.gz searxng-d2cfe9ce5bb409472f10590aa1ae069b2a971a49.zip |
LXC: add /.lxcenv
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'utils/lxc.sh')
-rwxr-xr-x | utils/lxc.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/utils/lxc.sh b/utils/lxc.sh index 64805272e..56450c4db 100755 --- a/utils/lxc.sh +++ b/utils/lxc.sh @@ -82,7 +82,7 @@ usage:: $_cmd [start|stop] [containers|<name>] $_cmd show [info|config|suite|images] $_cmd cmd [--|<name>] '...' - $_cmd install [suite] + $_cmd install [suite|buildhost] build :containers: build & launch all LXC containers of the suite @@ -443,10 +443,12 @@ lxc_boilerplate_containers() { boilerplate_script="${image_name}_boilerplate" boilerplate_script="${!boilerplate_script}" - info_msg "[${_BBlue}${container_name}${_creset}] install /.lxcenv.mk .." + info_msg "[${_BBlue}${container_name}${_creset}] init .." if lxc start -q "${container_name}" &>/dev/null; then sleep 5 # guest needs some time to come up and get an IP fi + lxc_init_container "${container_name}" + info_msg "[${_BBlue}${container_name}${_creset}] install /.lxcenv.mk .." cat <<EOF | lxc exec "${container_name}" -- bash | prefix_stdout "[${_BBlue}${container_name}${_creset}] " rm -f "/.lxcenv.mk" ln -s "${LXC_REPO_ROOT}/utils/makefile.lxc" "/.lxcenv.mk" |