initcpio_ back pxe hook arch patch
This commit is contained in:
parent
e8ce4332bb
commit
4371317016
1 changed files with 6 additions and 2 deletions
|
@ -22,11 +22,15 @@ run_hook () {
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
if [[ "${ip}" == "dhcp" ]]; then
|
||||||
|
ip=":::::${bootif_dev}:dhcp"
|
||||||
|
else
|
||||||
ip="${ip}::${bootif_dev}"
|
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"
|
||||||
|
|
Loading…
Reference in a new issue