Skip to content
Snippets Groups Projects

Make pressure-vessel-wrap responsible for unpacking runtimes

Merged Simon McVittie requested to merge wip/deploy-from-c-code into master
2 files
+ 44
2
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -8,9 +8,11 @@ me="${me##*/}"
# This is a prototype and will probably not survive in its current form.
# Don't rely on it.
deploy=
force=
info=
rendezvous=
suite=
use_timestamp=
verbose=
@@ -62,8 +64,10 @@ usage () {
echo "Must be run while holding a lock."
echo
echo "Options"
echo "--deploy=DIR Ignored for backwards compatibility."
echo "--force Try even if an earlier attempt failed."
echo "--session=PATH Directory representing a session."
echo "--suite=SUITE Run in this runtime [default=choose automatically]."
echo "--use-timestamp Prepend the timestamp to the log entries."
echo "--verbose Be more verbose."
@@ -71,8 +75,10 @@ usage () {
}
getopt_temp="help"
getopt_temp="${getopt_temp},deploy:"
getopt_temp="${getopt_temp},force"
getopt_temp="${getopt_temp},session:"
getopt_temp="${getopt_temp},suite:"
getopt_temp="${getopt_temp},use-timestamp:"
getopt_temp="${getopt_temp},verbose"
@@ -87,6 +93,10 @@ while [ "$#" -gt 0 ]; do
# not reached
;;
(--deploy)
shift 2
;;
(--force)
force=yes
shift
@@ -97,6 +107,11 @@ while [ "$#" -gt 0 ]; do
shift 2
;;
(--suite)
suite="$2"
shift 2
;;
(--use-timestamp)
use_timestamp=yes
shift
@@ -147,8 +162,14 @@ fi
rm -f "$rendezvous/fifo"
mkfifo "$rendezvous/fifo"
if [ -z "${suite}" ]; then
run=run
else
run="run-in-${suite}"
fi
info "Starting pressure-vessel-launcher in background"
"${here}/run" \
"${here}/${run}" \
--filesystem="$pressure_vessel" \
--filesystem="$rendezvous" \
--launcher \
Loading