Compare commits

...

4 Commits

Author SHA1 Message Date
Sven Dowideit
19a595773b Merge pull request #1759 from rancher/dont-remove-ipv4ll-ip-either
Don't auto-remove the ipv4ll ip we just added
2017-04-07 19:58:48 +10:00
Sven Dowideit
c98844ec45 Merge pull request #1760 from rancher/fix-upgrade-kexec
use --kexec for os upgrade, not -k
2017-04-07 19:36:43 +10:00
Sven Dowideit
fde6789d4a use --kexec for os upgrade, not -k
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-04-07 09:32:57 +00:00
Sven Dowideit
3fefb5f888 Don't auto-remove the ipv4ll ip we just added
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-04-07 09:05:18 +00:00
2 changed files with 3 additions and 3 deletions

View File

@@ -53,7 +53,7 @@ func osSubcommands() []cli.Command {
Usage: "do not reboot after upgrade",
},
cli.BoolFlag{
Name: "kexec",
Name: "kexec, k",
Usage: "reboot using kexec",
},
cli.StringFlag{
@@ -206,7 +206,7 @@ func startUpgradeContainer(image string, stage, force, reboot, kexec bool, upgra
}
if kexec {
command = append(command, "-k")
command = append(command, "--kexec")
}
kernelArgs = strings.TrimSpace(kernelArgs)

View File

@@ -395,7 +395,7 @@ func applyInterfaceConfig(link netlink.Link, netConf InterfaceConfig) error {
}
for _, addr := range existingAddrs {
if _, ok := addrMap[addr.IPNet.String()]; !ok {
if netConf.DHCP {
if netConf.DHCP || netConf.IPV4LL {
// let the dhcpcd take care of it
log.Infof("leaving %s from %s", addr.String(), link.Attrs().Name)
} else {