summaryrefslogtreecommitdiff
path: root/debian/patches
diff options
context:
space:
mode:
authorBen Howard <ben.howard@ubuntu.com>2016-02-08 16:33:07 -0700
committerusd-importer <ubuntu-server@lists.ubuntu.com>2016-02-09 00:59:05 +0000
commita00729ff7421b3661e8b1a1e0fa46393379f2e96 (patch)
tree4563b927e3a57446a4a928a72a92d72c9ad4f6e6 /debian/patches
parent53f54030cae2de3d5fa474a61fe51f16c7a07c79 (diff)
downloadvyos-walinuxagent-a00729ff7421b3661e8b1a1e0fa46393379f2e96.tar.gz
vyos-walinuxagent-a00729ff7421b3661e8b1a1e0fa46393379f2e96.zip
Import patches-unapplied version 2.1.3-0ubuntu1 to ubuntu/xenial-proposed
Imported using git-ubuntu import. Changelog parent: 53f54030cae2de3d5fa474a61fe51f16c7a07c79 New changelog entries: * New upstream release (LP: #1543359): - Bug fixes for extension handling - Feature enablement for AzureStack.
Diffstat (limited to 'debian/patches')
-rw-r--r--debian/patches/disable-udev-rules-removal.patch12
-rw-r--r--debian/patches/disable_import_test.patch21
-rw-r--r--debian/patches/disable_rhel_tests.patch13
-rw-r--r--debian/patches/disable_udev_overrides.patch37
-rw-r--r--debian/patches/series3
5 files changed, 40 insertions, 46 deletions
diff --git a/debian/patches/disable-udev-rules-removal.patch b/debian/patches/disable-udev-rules-removal.patch
deleted file mode 100644
index 3f3adfb..0000000
--- a/debian/patches/disable-udev-rules-removal.patch
+++ /dev/null
@@ -1,12 +0,0 @@
---- a/azurelinuxagent/distro/ubuntu/osutil.py
-+++ b/azurelinuxagent/distro/ubuntu/osutil.py
-@@ -44,6 +44,9 @@
- def start_agent_service(self):
- return shellutil.run("service walinuxagent start", chk_err=False)
-
-+ def remove_rules_files(self, *args):
-+ return
-+
- class Ubuntu1204OSUtil(Ubuntu14xOSUtil):
- def __init__(self):
- super(Ubuntu1204OSUtil, self).__init__()
diff --git a/debian/patches/disable_import_test.patch b/debian/patches/disable_import_test.patch
index f7e6b64..cf3d167 100644
--- a/debian/patches/disable_import_test.patch
+++ b/debian/patches/disable_import_test.patch
@@ -1,20 +1,3 @@
---- a/tests/test_import_waagent.py
-+++ b/tests/test_import_waagent.py
-@@ -28,13 +28,7 @@
-
- class TestImportWAAgent(unittest.TestCase):
- def test_import_waagent(self):
-- agent_path = os.path.join(tools.parent, 'bin/waagent')
-- if sys.version_info[0] == 2:
-- waagent = imp.load_source('waagent', agent_path)
-- self.assertNotEquals(None, waagent.LoggerInit)
-- else:
-- self.assertRaises(ImportError, imp.load_source, 'waagent',
-- agent_path)
-+ pass
-
- if __name__ == '__main__':
- unittest.main()
--- a/config/waagent.conf
+++ b/config/waagent.conf
@@ -14,13 +14,13 @@
@@ -34,8 +17,8 @@
# Supported values are "rsa", "dsa" and "ecdsa".
Provisioning.SshHostKeyPairType=rsa
-@@ -41,14 +41,14 @@
- #Provisioning.PasswordCryptSaltLength=10
+@@ -44,14 +44,14 @@
+ Provisioning.AllowResetSysUser=n
# Format if unformatted. If 'n', resource disk will not be mounted.
-ResourceDisk.Format=y
diff --git a/debian/patches/disable_rhel_tests.patch b/debian/patches/disable_rhel_tests.patch
deleted file mode 100644
index f815ffe..0000000
--- a/debian/patches/disable_rhel_tests.patch
+++ /dev/null
@@ -1,13 +0,0 @@
---- a/tests/test_redhat.py
-+++ b/tests/test_redhat.py
-@@ -41,9 +41,7 @@
-
- class TestRedhat(unittest.TestCase):
- def test_RsaPublicKeyToSshRsa(self):
-- OSUtil = RedhatOSUtil()
-- ssh_rsa_pubkey = OSUtil.asn1_to_ssh_rsa(test_pubkey)
-- self.assertEquals(expected_ssh_rsa_pubkey, ssh_rsa_pubkey)
-+ pass
-
- if __name__ == '__main__':
- unittest.main()
diff --git a/debian/patches/disable_udev_overrides.patch b/debian/patches/disable_udev_overrides.patch
new file mode 100644
index 0000000..e0bb607
--- /dev/null
+++ b/debian/patches/disable_udev_overrides.patch
@@ -0,0 +1,37 @@
+--- a/bin/waagent2.0
++++ b/bin/waagent2.0
+@@ -95,8 +95,7 @@
+ VMM_STARTUP_SCRIPT_NAME='install'
+ VMM_CONFIG_FILE_NAME='linuxosconfiguration.xml'
+ global RulesFiles
+-RulesFiles = [ "/lib/udev/rules.d/75-persistent-net-generator.rules",
+- "/etc/udev/rules.d/70-persistent-net.rules" ]
++RulesFiles = [ ]
+ VarLibDhcpDirectories = ["/var/lib/dhclient", "/var/lib/dhcpcd", "/var/lib/dhcp"]
+ EtcDhcpClientConfFiles = ["/etc/dhcp/dhclient.conf", "/etc/dhcp3/dhclient.conf"]
+ global LibDir
+--- a/azurelinuxagent/distro/ubuntu/osutil.py
++++ b/azurelinuxagent/distro/ubuntu/osutil.py
+@@ -44,6 +44,12 @@
+ def start_agent_service(self):
+ return shellutil.run("service walinuxagent start", chk_err=False)
+
++ def remove_rules_files(self, rules_files=""):
++ pass
++
++ def restore_rules_files(self, rules_files=""):
++ pass
++
+ class Ubuntu12OSUtil(Ubuntu14OSUtil):
+ def __init__(self):
+ super(Ubuntu12OSUtil, self).__init__()
+@@ -67,9 +73,3 @@
+ def __init__(self):
+ super(UbuntuSnappyOSUtil, self).__init__()
+ self.conf_file_path = '/apps/walinuxagent/current/waagent.conf'
+-
+- def remove_rules_files(self, rules_files=""):
+- pass
+-
+- def restore_rules_files(self, rules_files=""):
+- pass
diff --git a/debian/patches/series b/debian/patches/series
index d32f0ed..05993c8 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,4 +1,3 @@
cloud-init-default-cfg.patch
-disable-udev-rules-removal.patch
-disable_rhel_tests.patch
disable_import_test.patch
+disable_udev_overrides.patch