mirror of
https://github.com/rancher/os.git
synced 2025-07-01 09:11:48 +00:00
Merge pull request #1339 from joshwget/wait-for-network-packet
Wait for network before installing in Packet
This commit is contained in:
commit
c9d2957d7a
@ -1,8 +1,23 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -ex
|
||||||
|
|
||||||
|
INSTALLER_IMAGE=rancher/os:v0.7.0
|
||||||
|
|
||||||
|
ros config set rancher.network.interfaces.eth1.dhcp false
|
||||||
|
if grep eth2 /proc/net/dev; then
|
||||||
|
ros config set rancher.network.interfaces.eth0.dhcp false
|
||||||
|
ros config set rancher.network.interfaces.eth2.dhcp true
|
||||||
|
system-docker restart network
|
||||||
|
fi
|
||||||
|
|
||||||
|
for ((i=0;i<30;i++)); do
|
||||||
|
if system-docker pull ${INSTALLER_IMAGE}; then
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
|
||||||
TINKERBELL_URL=$(cat /proc/cmdline | sed -e 's/^.*tinkerbell=//' -e 's/ .*$//')/phone-home
|
TINKERBELL_URL=$(cat /proc/cmdline | sed -e 's/^.*tinkerbell=//' -e 's/ .*$//')/phone-home
|
||||||
INSTALLER_IMAGE=rancher/os:v0.7.0-rc3
|
|
||||||
|
|
||||||
tinkerbell_post()
|
tinkerbell_post()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user