initcpio_ back pxe hook arch patch

This commit is contained in:
udeved 2017-03-25 12:14:39 +01:00
parent e8ce4332bb
commit 4371317016

View file

@ -22,11 +22,15 @@ run_hook () {
break
fi
done
ip="${ip}::${bootif_dev}"
if [[ "${ip}" == "dhcp" ]]; then
ip=":::::${bootif_dev}:dhcp"
else
ip="${ip}::${bootif_dev}"
fi
fi
# setup network and save some values
if ! ipconfig "ip=${ip}"; then
if ! ipconfig -t 20 "ip=${ip}"; then
echo "ERROR; Failed to configure network"
echo " Falling back to interactive prompt"
echo " You can try to fix the problem manually, log out when you are finished"