mirror of
https://github.com/dockur/windows.git
synced 2024-06-02 06:45:29 +02:00
Compare commits
30 Commits
bd74dad2e8
...
e2fd53c5fb
Author | SHA1 | Date | |
---|---|---|---|
|
e2fd53c5fb | ||
|
fea472ce44 | ||
|
4c51cb73e9 | ||
|
4e307b8785 | ||
|
819d780cec | ||
|
e024441d21 | ||
|
06cc143595 | ||
|
a3edb65e4b | ||
|
44ba903f9d | ||
|
a27df384fe | ||
|
9e6e4a1490 | ||
|
1a7b4db5d1 | ||
|
262e73f45d | ||
|
d250d06ca8 | ||
|
a0ce86369b | ||
|
5fec254f4b | ||
|
9e59f012e8 | ||
|
16bb58759e | ||
|
4198b3d9eb | ||
|
dea1b04709 | ||
|
f256f922e0 | ||
|
3b0bc2817b | ||
|
895fa9cb73 | ||
|
0eed25f23c | ||
|
e503215e79 | ||
|
a8cdd1ba65 | ||
|
0293a327f0 | ||
|
1943e1bfa8 | ||
|
7cd38ca019 | ||
|
31e038b145 |
|
@ -1,5 +1,5 @@
|
|||
FROM scratch
|
||||
COPY --from=qemux/qemu-docker:4.25 / /
|
||||
COPY --from=qemux/qemu-docker:4.24 / /
|
||||
|
||||
ARG DEBCONF_NOWARNINGS "yes"
|
||||
ARG DEBIAN_FRONTEND "noninteractive"
|
||||
|
|
|
@ -21,7 +21,7 @@ cd /run
|
|||
|
||||
trap - ERR
|
||||
|
||||
info "Booting ${APP}${BOOT_DESC}..."
|
||||
info "Booting ${APP}${BOOT_DESC} on a ${CPU} using QEMU v${VERS} with kernel $(uname -r)..."
|
||||
[[ "$DEBUG" == [Yy1]* ]] && echo "Arguments: $ARGS" && echo
|
||||
|
||||
{ qemu-system-x86_64 ${ARGS:+ $ARGS} >"$QEMU_OUT" 2>"$QEMU_LOG"; rc=$?; } || :
|
||||
|
|
18
src/mido.sh
18
src/mido.sh
|
@ -200,7 +200,7 @@ handle_curl_error() {
|
|||
# https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_08_02
|
||||
$((error_code <= 125)))
|
||||
# Must be some other server or network error (possibly with this specific request/file)
|
||||
# This is when accounting for all possible errors in the curl manual assuming a correctly formed curl command and an HTTP(S) request, using only the curl features we're using, and a sane build
|
||||
# This is when accounting for all possible errors in the curl manual assuming a correctly formed curl command and HTTP(S) request, using only the curl features we're using, and a sane build
|
||||
echo_err "Miscellaneous server or network error!"
|
||||
;;
|
||||
126 | 127)
|
||||
|
@ -246,7 +246,7 @@ scurl_file() {
|
|||
handle_curl_error "$error_code"
|
||||
error_action=$?
|
||||
|
||||
# Clean up and make sure a future resume doesn't happen from a bad download resume file
|
||||
# Clean up and make sure future resumes don't happen from bad download resume files
|
||||
if [ -f "$out_file" ]; then
|
||||
# If file is empty, bad HTTP code, or bad download resume file
|
||||
if [ ! -s "$out_file" ] || [ "$error_code" = 22 ] || [ "$error_code" = 36 ]; then
|
||||
|
@ -374,13 +374,13 @@ consumer_download() {
|
|||
|
||||
if ! [ "$iso_download_link_html" ]; then
|
||||
# This should only happen if there's been some change to how this API works
|
||||
echo_err "Microsoft servers gave us an empty response to our request for an automated download."
|
||||
echo_err "Microsoft servers gave us an empty response to our request for an automated download. Please check the FAQ on how to boot from a local file and manually download this ISO in a web browser: $url"
|
||||
manual_verification="true"
|
||||
return 1
|
||||
fi
|
||||
|
||||
if echo "$iso_download_link_html" | grep -q "We are unable to complete your request at this time."; then
|
||||
echo_err "Microsoft blocked the automated download request based on your IP address."
|
||||
echo_err "Microsoft blocked the automated download request based on your IP address. Please check the FAQ on how to boot from a local file and manually download this ISO in a web browser here: $url"
|
||||
manual_verification="true"
|
||||
return 1
|
||||
fi
|
||||
|
@ -392,12 +392,12 @@ consumer_download() {
|
|||
|
||||
if ! [ "$iso_download_link" ]; then
|
||||
# This should only happen if there's been some change to the download endpoint web address
|
||||
echo_err "Microsoft servers gave us no download link to our request for an automated download."
|
||||
echo_err "Microsoft servers gave us no download link to our request for an automated download. Please check the FAQ on how to boot from a local file and manually download this ISO in a web browser: $url"
|
||||
manual_verification="true"
|
||||
return 1
|
||||
fi
|
||||
|
||||
#echo_ok "Got latest ISO download link (valid for 24 hours): $iso_download_link"
|
||||
echo_ok "Got latest ISO download link (valid for 24 hours): $iso_download_link"
|
||||
|
||||
# Download ISO
|
||||
scurl_file "$out_file" "1.3" "$iso_download_link"
|
||||
|
@ -458,7 +458,7 @@ enterprise_eval_download() {
|
|||
# Limit untrusted size for input validation
|
||||
iso_download_link="$(echo "$iso_download_link" | head -c 1024)"
|
||||
|
||||
#echo_ok "Got latest ISO download link: $iso_download_link"
|
||||
echo_ok "Got latest ISO download link: $iso_download_link"
|
||||
|
||||
# Use highest TLS version for endpoints that support it
|
||||
case "$iso_download_link" in
|
||||
|
@ -675,7 +675,7 @@ ending_summary() {
|
|||
done
|
||||
|
||||
# shellcheck disable=SC2086
|
||||
echo_err "Attempted download failed!"
|
||||
echo_err "$(word_count $media_download_failed_list) attempted download(s) failed! Please re-run Mido with these arguments to try downloading again (any partial downloads will be resumed):$media_download_failed_argument_list"
|
||||
fi
|
||||
|
||||
# Exit codes
|
||||
|
@ -716,7 +716,7 @@ handle_exit() {
|
|||
|
||||
if [ "$exit_code" != 0 ] || [ "$signal" ]; then
|
||||
echo "" >&2
|
||||
echo_err "Mido was exited abruptly!"
|
||||
echo_err "Mido was exited abruptly! PARTially downloaded or UNVERIFIED Windows media may exist. Please re-run this Mido command and do not use the bad media."
|
||||
fi
|
||||
|
||||
if [ "$exit_code" != 0 ]; then
|
||||
|
|
Loading…
Reference in New Issue
Block a user