diff --git a/tools/test-install/install b/tools/test-install/install index 3b81296c35..d1f6ffab60 100755 --- a/tools/test-install/install +++ b/tools/test-install/install @@ -45,7 +45,7 @@ done message="$(cat <&2 - runlevel="$(lxc-attach -n "$CONTAINER_NAME" -- runlevel 2>/dev/null)" \ + runlevel="$(lxc-attach --clear-env -n "$CONTAINER_NAME" -- runlevel 2>/dev/null)" \ || { sleep 1; continue; } if [ "$runlevel" != "${0%[0-9]}" ]; then echo "lxc-wait: $CONTAINER_NAME: booted!" >&2 diff --git a/tools/test-install/prepare-base b/tools/test-install/prepare-base index 20643d372d..6b6e9c5b38 100755 --- a/tools/test-install/prepare-base +++ b/tools/test-install/prepare-base @@ -34,7 +34,7 @@ lxc-start -n "$CONTAINER_NAME" "$THIS_DIR"/lxc-wait -n "$CONTAINER_NAME" run() { - lxc-attach -n "$CONTAINER_NAME" -- "$@" + lxc-attach --clear-env -n "$CONTAINER_NAME" -- "$@" } run passwd -d root