Skip to content
Snippets Groups Projects
Commit dcd9718b authored by Enoc's avatar Enoc
Browse files

Allow to test network in QEMU

parent 731f5151
No related branches found
No related tags found
No related merge requests found
......@@ -300,7 +300,10 @@ set_keymap() {
check_network() {
dg_info "Network Connect" "\nVerifying network connection\n" 1
if ! ping -q -c 3 www.archlinux.org &>/dev/null; then
# Qemu does not allow to use ping (emit ICMP packets) with the default network backend, in that
# case curl can be used to test network connection
if ! ping -q -c 3 www.archlinux.org &>/dev/null && ! curl www.archlinux.org -f &> /dev/null ; then
dg_info "Network Connect" "$dgm_network_fail"
die "" "clean_install"
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment