Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ RUN set -eu && \
echo "$VERSION_ARG" > /etc/version && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

ADD "https://github.com/zima-os/images/releases/download/v${VERSION_ARG}/zimaos-x86_64-${VERSION_ARG}_installer.qcow2" /img.qcow2
COPY --chmod=755 ./src /run/
Comment on lines +21 to 22

VOLUME /storage
Expand Down
2 changes: 1 addition & 1 deletion src/entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ info "Booting $APP using QEMU v$version..."

[[ "$SHUTDOWN" != [Yy1]* ]] && exec qemu-system-x86_64 ${ARGS:+ $ARGS}

qemu-system-x86_64 ${ARGS:+ $ARGS} &
qemu-system-x86_64 ${ARGS:+ $ARGS} </dev/null &

rc=0
wait $! || rc=$?
Expand Down
6 changes: 6 additions & 0 deletions src/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,12 @@ fi
find "$STORAGE" -maxdepth 1 -type f \( -iname '*.rom' -or -iname '*.vars' \) -delete
find "$STORAGE" -maxdepth 1 -type f \( -iname 'data.*' -or -iname 'qemu.*' \) -delete

if [ -s /img.qcow2 ]; then
cp /img.qcow2 "$STORAGE/"
! bootFile "$STORAGE/img.qcow2" && exit 61
return 0
fi
Comment on lines +130 to +134

[ -z "${VERSION:-}" ] && VERSION="1.6.1"

# Download release
Expand Down