Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12:Update
google-guest-agent
dont_overwrite_ifcfg.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File dont_overwrite_ifcfg.patch of Package google-guest-agent
diff -Nru guest-agent-20240314.00.orig/google_guest_agent/network/manager/wicked_linux.go guest-agent-20240314.00/google_guest_agent/network/manager/wicked_linux.go --- guest-agent-20240314.00.orig/google_guest_agent/network/manager/wicked_linux.go 2024-03-12 18:24:11.000000000 +0100 +++ guest-agent-20240314.00/google_guest_agent/network/manager/wicked_linux.go 2024-03-22 12:59:57.908333528 +0100 @@ -229,6 +229,7 @@ // writeEthernetConfigs writes config files for the given ifaces in the given configuration // directory. func (n wicked) writeEthernetConfigs(ifaces []string) error { + var err error var priority = 10100 // Write the config for all the non-primary network interfaces. @@ -237,7 +238,13 @@ var ifcfg *os.File - ifcfg, err := os.Create(n.ifcfgFilePath(iface)) + filename := n.ifcfgFilePath(iface) + _, err = os.Stat(filename) + if ! os.IsNotExist(err) { + return nil + } + + ifcfg, err = os.Create(filename) if err != nil { return err }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor