1
0
mirror of https://github.com/rancher/os.git synced 2025-06-24 22:11:33 +00:00
Commit Graph

52 Commits

Author SHA1 Message Date
Jason-ZW
4cb0f462bd Add wifi support 2018-11-07 17:11:03 +08:00
niusmallnan
bb5ce7ac23 Fix dhcpcd zoombie issue 2018-11-01 16:26:58 +08:00
niusmallnan
823ae28a52 Imports are organized in groups, with blank lines between them
https://github.com/golang/go/wiki/CodeReviewComments#imports
2018-10-23 13:11:31 +08:00
Jason-ZW
ef663b4e70 Add dhcp timeout parameter 2018-10-23 09:47:43 +08:00
Darren Shepherd
1f50386828 Move around code for better clarity 2018-09-19 17:18:49 +08:00
niusmallnan
b4cd6af468 Update all go files mode 2018-04-16 11:30:08 +08:00
Julien Kassar
82aaa413f5 Fix format 'verbs' (#2115) 2018-01-25 09:47:17 +08:00
niusmallnan
7250ee8ab4 Add more logs for networking conf 2018-01-19 22:42:01 +08:00
Sven Dowideit
5e57bc0c99 dhcpcd overwrites resolv.conf when releasing a lease
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-09-12 15:00:20 +10:00
Sven Dowideit
5dfc818303 Stop overwriting a good resolv.conf file with the default one
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-08-29 10:10:47 +10:00
Sven Dowideit
c67eba4dbb Work out network pre_cmds/pre_up calls
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-07-10 12:08:02 +10:00
Sven Dowideit
8a741c5d32 Add explicit wait to dhcp
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-06-29 22:11:03 +10:00
Sven Dowideit
b217ad5732 Bounce the syslog service so it notices the hostname change
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-05-19 02:50:56 +00:00
Sven Dowideit
ac5cb304d6 Call dhcp release on interfaces that are dhcp:false
and then remove any non-specified IP addresses from them too

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-04-03 09:25:55 +00:00
Sven Dowideit
59a752c306 Use the partial cfg for the initial network
and release the network device from dhcp if we're not using it

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-03-26 11:49:14 +00:00
Sven Dowideit
d65f9518df use DHCP for aws datasource
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-03-13 10:56:28 +10:00
Sven Dowideit
0779e13d46 Refactor the cloud-init metadata to return a netconf.NetworkConfig
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-03-08 12:03:58 +00:00
Sven Dowideit
4df962d4b6 make ros log to dmesg
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2016-11-30 10:51:30 +10:00
Josh Curl
a7c34b9855
Fix golint errors 2016-11-28 00:06:00 -08:00
Josh Curl
13b34a6668
Early cloud-init 2016-11-09 11:08:30 -08:00
Josh Curl
691f7cb42c
Move in code from netconf and docker-from-scratch 2016-10-19 16:21:35 -07:00
Darren Shepherd
71c8f40ffe Merge pull request #972 from joshwget/boot-with-invalid-config
Fix boot issues due to invalid configs
2016-06-02 19:27:23 -06:00
Josh Curl
08f40ad3e7
Fix boot issues due to invalid configs 2016-06-01 18:41:55 -07:00
Josh Curl
e51c5409aa
Move default hostname and network under common key 2016-05-31 22:27:04 -07:00
Josh Curl
6ec9ce1bc6 Replace wait-for-network services with retries 2016-05-26 18:54:42 -07:00
Josh Curl
8862878337 Remove DHCP override flag 2016-04-15 10:38:31 -07:00
Josh Curl
a0ae6222c9 Fix DHCP hostname being overwritten 2016-04-14 21:58:07 -07:00
Josh Curl
60ecf3d547 If DNS override is set, pass --nohook resolv.conf to dhcpd 2016-04-12 09:57:14 -07:00
Josh Curl
173874f196 Apply network configurations again after cloud-init 2016-04-08 13:04:35 -07:00
Darren Shepherd
3ee82333db Close file in wait for network 2015-12-22 08:59:35 -07:00
Ivan Mikushin
f03486263b Resolve localhost and current hostname 2015-12-11 16:44:26 +05:00
Ivan Mikushin
5a363ab97d migrate to upstream libcompose in one and a half go 2015-12-07 18:17:57 +05:00
Ivan Mikushin
a323c1bb02 Network: configure nameservers from DHCP and cloud-config
If dns.override is set, use dns.nameservers from cloud-config over the ones set by DHCP. To reconfigure DNS just restart the network service.
2015-12-02 20:59:06 +05:00
Ivan Mikushin
56b1aa67ac Leave dhcpcd (and netconf) running in the background.
Add wait-for-network.
2015-11-12 22:08:29 +05:00
Darren Shepherd
ea50b5968a Set hostname prior to running DHCP
https://github.com/rancher/os/issues/627
2015-11-04 16:06:17 -07:00
Wang Long
9e15059789 Replace rancherio with rancher
Signed-off-by: Wang Long <long.wanglong@huawei.com>
2015-10-12 19:50:57 +08:00
Darren Shepherd
889c80b682 Rebase on rancher/netconf 2015-08-06 00:05:24 -07:00
Ivan Mikushin
7ad60c07bd make cloud-config the configuration mechanism for RancherOS 2015-08-05 19:48:25 +05:00
Darren Shepherd
106fb36c8c Set hostname from DHCP (broken)
This adds the proper variable we need to set the hostname from DHCP. End
to end this does not work though.  The hostname does not propagate
outside the container.  More changes need to be done for this.
2015-04-10 07:28:28 -07:00
Darren Shepherd
43e3d380f4 Attempt to set hostname from DHCP 2015-04-07 20:06:43 -07:00
Darren Shepherd
2fdfd56a2c Switch network container to privileged and don't use ARP 2015-04-06 15:41:48 -07:00
wlan0
7cc2eb316c use new os-base with dhcpcd 2015-04-06 15:40:59 -07:00
Darren Shepherd
af272e92ca Add networking to system docker 2015-04-04 12:18:44 -07:00
Darren Shepherd
c7ae14cc13 Refactor configuration to compose syntax 2015-04-04 05:42:48 -07:00
wlan0
1dba86a97e add ipv4ll auto conf 2015-04-04 05:39:11 -07:00
Darren Shepherd
6ce39f7c66 Merge pull request #112 from wlan0/netconf
match network interfaces by MAC addresses
2015-03-27 18:48:01 -07:00
Bill Maxwell
c4ca06fb8c Make the post hook use the system docker
When booting, if the network doesn't come up or the post hook is
needed to complete bringing up the network, you need access to the
baked in images.
2015-03-27 15:58:07 -07:00
wlan0
a6415394af match network interfaces by MAC addresses 2015-03-25 18:10:44 -07:00
Darren Shepherd
e143d04885 Refactor network config to put that match as the key 2015-03-18 06:45:21 -07:00
Bill Maxwell
ede9b0100e fixed whitespace in help 2015-03-10 21:54:02 -07:00