blob: 5934f408e80c7b93d18ea10f13bd8ef2df660f76 [file] [log] [blame]
#!/bin/bash
# Copyright 2019 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
### start Fuchsia System Recovery in qem
##
## Run "fx build recovery_image" first.
source "$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"/../lib/image_build_vars.sh || exit $?
source "${FUCHSIA_DIR}/buildtools/vars.sh"
qemu_dir="${BUILDTOOLS_QEMU_DIR}/bin"
"${FUCHSIA_DIR}/zircon/scripts/run-zircon" \
-a "${FUCHSIA_ARCH}" \
-q "${qemu_dir}" \
-t "${FUCHSIA_BUILD_DIR}/${IMAGE_QEMU_KERNEL_RAW}" \
-z "${FUCHSIA_BUILD_DIR}/recovery.zbi" \
"$@"