diff options
author | Ben Howard <ben.howard@ubuntu.com> | 2013-09-26 08:21:35 -0600 |
---|---|---|
committer | usd-importer <ubuntu-server@lists.ubuntu.com> | 2013-09-30 19:23:28 +0000 |
commit | 4a5e1f2930d7642eb2035de39f895118dd218b3f (patch) | |
tree | 26dfc1e69b998d3e79786a54d6e417ec9bb77a82 | |
parent | 752c41b017ad0da01408cd8af5eb019b3004b81d (diff) | |
download | vyos-walinuxagent-4a5e1f2930d7642eb2035de39f895118dd218b3f.tar.gz vyos-walinuxagent-4a5e1f2930d7642eb2035de39f895118dd218b3f.zip |
no_udev_rule_removal.patch
No DEP3 Subject or Description header found
Gbp-Pq: no_udev_rule_removal.patch.
-rw-r--r-- | waagent | 26 |
1 files changed, 14 insertions, 12 deletions
@@ -701,12 +701,13 @@ class EnvMonitor(object): dhcpcmd = "pidof dhclient3" dhcppid = RunGetOutput(dhcpcmd,chk_err=False)[1] while not self.shutdown: - for a in RulesFiles: - if os.path.isfile(a): - if os.path.isfile(GetLastPathElement(a)): - os.remove(GetLastPathElement(a)) - shutil.move(a, ".") - Log("EnvMonitor: Moved " + a + " -> " + LibDir) + if not IsDebian(): + for a in RulesFiles: + if os.path.isfile(a): + if os.path.isfile(GetLastPathElement(a)): + os.remove(GetLastPathElement(a)) + shutil.move(a, ".") + Log("EnvMonitor: Moved " + a + " -> " + LibDir) if publish != None and publish.lower().startswith("y"): try: if socket.gethostname() != self.HostName: @@ -2318,12 +2319,13 @@ def Install(): if UsesDpkg() and not Run("dpkg-query -s network-manager >/dev/null 2>&1",chk_err=False): # We want this to fail - supress error logging on error. Error(GuestAgentLongName + " is not compatible with network-manager.") return 1 - for a in RulesFiles: - if os.path.isfile(a): - if os.path.isfile(GetLastPathElement(a)): - os.remove(GetLastPathElement(a)) - shutil.move(a, ".") - Warn("Moved " + a + " -> " + LibDir + "/" + GetLastPathElement(a) ) + if not IsDebian(): + for a in RulesFiles: + if os.path.isfile(a): + if os.path.isfile(GetLastPathElement(a)): + os.remove(GetLastPathElement(a)) + shutil.move(a, ".") + Warn("Moved " + a + " -> " + LibDir + "/" + GetLastPathElement(a) ) if IsUbuntu() and not IsPackagedUbuntu(): # Support for Ubuntu's upstart configuration |