diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6d55ab9..d437ad8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -92,6 +92,13 @@ jobs: uses: action-pack/bump@v2 with: token: ${{ secrets.REPO_ACCESS_TOKEN }} + - + name: Push to Gitlab mirror + uses: action-pack/gitlab-sync@v3 + with: + url: ${{ secrets.GITLAB_URL }} + token: ${{ secrets.GITLAB_TOKEN }} + username: ${{ secrets.GITLAB_USERNAME }} - name: Send mail uses: action-pack/send-mail@v1 diff --git a/Dockerfile b/Dockerfile index e7d0725..ce621dd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM scratch -COPY --from=qemux/qemu-arm:1.05 / / +COPY --from=qemux/qemu-arm:1.06 / / -ARG DEBCONF_NOWARNINGS="yes" +ARG DEBCONF_NOWARNINGS "yes" ARG DEBIAN_FRONTEND "noninteractive" ARG DEBCONF_NONINTERACTIVE_SEEN "true" diff --git a/readme.md b/readme.md index b579d2b..c13477c 100644 --- a/readme.md +++ b/readme.md @@ -183,6 +183,8 @@ docker run -it --rm --name windows -p 8006:8006 --device=/dev/kvm --cap-add NET_ ```yaml environment: DHCP: "Y" + devices: + - /dev/vhost-net device_cgroup_rules: - 'c *:* rwm' ``` diff --git a/src/entry.sh b/src/entry.sh index 7402870..7851a44 100644 --- a/src/entry.sh +++ b/src/entry.sh @@ -23,6 +23,10 @@ trap - ERR info "Booting $APP using $VERS..." [[ "$DEBUG" == [Yy1]* ]] && echo "Arguments: $ARGS" && echo +if [[ "$CONSOLE" == [Yy]* ]]; then + exec qemu-system-x86_64 ${ARGS:+ $ARGS} +fi + { qemu-system-aarch64 ${ARGS:+ $ARGS} >"$QEMU_OUT" 2>"$QEMU_LOG"; rc=$?; } || : (( rc != 0 )) && error "$(<"$QEMU_LOG")" && exit 15 @@ -31,4 +35,5 @@ tail -fn +0 "$QEMU_LOG" 2>/dev/null & cat "$QEMU_TERM" 2> /dev/null | tee "$QEMU_PTY" & wait $! || : -sleep 1 && finish 0 +sleep 1 & wait $! +finish 0 diff --git a/src/samba.sh b/src/samba.sh index 6286492..5cc1cc8 100644 --- a/src/samba.sh +++ b/src/samba.sh @@ -1,7 +1,11 @@ #!/usr/bin/env bash set -Eeuo pipefail +: "${SAMBA:="Y"}" + [[ "$DHCP" == [Yy1]* ]] && return 0 +[[ "$SAMBA" != [Yy1]* ]] && return 0 +[[ "$NETWORK" != [Yy1]* ]] && return 0 SHARE="$STORAGE/shared"