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 break
fi fi
done done
ip="${ip}::${bootif_dev}" if [[ "${ip}" == "dhcp" ]]; then
ip=":::::${bootif_dev}:dhcp"
else
ip="${ip}::${bootif_dev}"
fi
fi fi
# setup network and save some values # 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 "ERROR; Failed to configure network"
echo " Falling back to interactive prompt" echo " Falling back to interactive prompt"
echo " You can try to fix the problem manually, log out when you are finished" echo " You can try to fix the problem manually, log out when you are finished"