diff options
author | Ben Howard <ben.howard@ubuntu.com> | 2015-08-14 16:40:41 -0600 |
---|---|---|
committer | usd-importer <ubuntu-server@lists.ubuntu.com> | 2015-08-15 14:33:21 +0000 |
commit | f78b9650d0e7b008d430673a075aad95dda863be (patch) | |
tree | a6749619e78483d45a66d4bad4d6e922391541fc /debian/patches | |
parent | 0afc048f2a6ff3638ecfa33e7ded5dc8dddf041a (diff) | |
download | vyos-walinuxagent-f78b9650d0e7b008d430673a075aad95dda863be.tar.gz vyos-walinuxagent-f78b9650d0e7b008d430673a075aad95dda863be.zip |
Import patches-unapplied version 2.1.1-0ubuntu1 to ubuntu/wily-proposed
Imported using git-ubuntu import.
Changelog parent: 0afc048f2a6ff3638ecfa33e7ded5dc8dddf041a
New changelog entries:
* New upstream release for Ubuntu.
- Switch to Python3
- Applies Ubuntu specific patches
Diffstat (limited to 'debian/patches')
-rw-r--r-- | debian/patches/build_info.txt | 4 | ||||
-rw-r--r-- | debian/patches/disable-provisioning.patch | 11 | ||||
-rw-r--r-- | debian/patches/disable-udev-rules-removal.patch | 12 | ||||
-rw-r--r-- | debian/patches/disable-udev-rules.patch | 12 | ||||
-rw-r--r-- | debian/patches/disable_provisioning.patch | 55 | ||||
-rw-r--r-- | debian/patches/fixup_setup_file.patch | 11 | ||||
-rw-r--r-- | debian/patches/series | 8 | ||||
-rw-r--r-- | debian/patches/start-after-cloudinit.patch | 12 |
8 files changed, 38 insertions, 87 deletions
diff --git a/debian/patches/build_info.txt b/debian/patches/build_info.txt deleted file mode 100644 index f02ab12..0000000 --- a/debian/patches/build_info.txt +++ /dev/null @@ -1,4 +0,0 @@ -serial=20150629 -orig_prefix=trusty-server-cloudimg -suite=trusty -build_name=server diff --git a/debian/patches/disable-provisioning.patch b/debian/patches/disable-provisioning.patch new file mode 100644 index 0000000..716ae12 --- /dev/null +++ b/debian/patches/disable-provisioning.patch @@ -0,0 +1,11 @@ +--- a/config/ubuntu/waagent.conf ++++ b/config/ubuntu/waagent.conf +@@ -42,7 +42,7 @@ + ResourceDisk.Filesystem=ext4 + + # Mount point for the resource disk +-ResourceDisk.MountPoint=/mnt/resource ++ResourceDisk.MountPoint=/mnt + + # Create and use swapfile on resource disk. + ResourceDisk.EnableSwap=n diff --git a/debian/patches/disable-udev-rules-removal.patch b/debian/patches/disable-udev-rules-removal.patch new file mode 100644 index 0000000..3f3adfb --- /dev/null +++ b/debian/patches/disable-udev-rules-removal.patch @@ -0,0 +1,12 @@ +--- 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-udev-rules.patch b/debian/patches/disable-udev-rules.patch deleted file mode 100644 index 8157f40..0000000 --- a/debian/patches/disable-udev-rules.patch +++ /dev/null @@ -1,12 +0,0 @@ ---- a/waagent -+++ b/waagent -@@ -92,8 +92,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 diff --git a/debian/patches/disable_provisioning.patch b/debian/patches/disable_provisioning.patch deleted file mode 100644 index 956d30b..0000000 --- a/debian/patches/disable_provisioning.patch +++ /dev/null @@ -1,55 +0,0 @@ ---- a/config/waagent.conf -+++ b/config/waagent.conf -@@ -2,6 +2,11 @@ - # Windows Azure Linux Agent Configuration - # - -+# NOTE: Ubuntu uses Cloud-init for disk-provisioning. This will -+# unless you disable Cloud-init disk provisioning. Please see -+# /usr/share/doc/walinuxagent/99-cloud-init-disable-diskprovisioning.conf -+# -+ - # Specified program is invoked with the argument "Ready" when we report ready status - # to the endpoint server. - Role.StateConsumer=None -@@ -14,19 +19,19 @@ - Role.TopologyConsumer=None - - # Enable instance creation --Provisioning.Enabled=y -+Provisioning.Enabled=n - - # Password authentication for root account will be unavailable. --Provisioning.DeleteRootPassword=y -+Provisioning.DeleteRootPassword=n - - # Generate fresh host key pair. --Provisioning.RegenerateSshHostKeyPair=y -+Provisioning.RegenerateSshHostKeyPair=n - - # Supported values are "rsa", "dsa" and "ecdsa". - Provisioning.SshHostKeyPairType=rsa - - # Monitor host name changes and publish changes via DHCP requests. --Provisioning.MonitorHostName=y -+Provisioning.MonitorHostName=n - - # Decode CustomData from Base64. - Provisioning.DecodeCustomData=n -@@ -35,14 +40,14 @@ - Provisioning.ExecuteCustomData=n - - # Format if unformatted. If 'n', resource disk will not be mounted. --ResourceDisk.Format=y -+ResourceDisk.Format=n - - # File system on the resource disk - # Typically ext3 or ext4. FreeBSD images should use 'ufs2' here. - ResourceDisk.Filesystem=ext4 - - # Mount point for the resource disk --ResourceDisk.MountPoint=/mnt/resource -+ResourceDisk.MountPoint=/mnt - - # Create and use swapfile on resource disk. - ResourceDisk.EnableSwap=n diff --git a/debian/patches/fixup_setup_file.patch b/debian/patches/fixup_setup_file.patch deleted file mode 100644 index 845607d..0000000 --- a/debian/patches/fixup_setup_file.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/setup.py -+++ b/setup.py -@@ -51,7 +51,7 @@ - - def initialize_options(self): - install.initialize_options(self) -- self.init_system = 'sysV' -+ self.init_system = 'upstart' - self.lnx_distro = None - - def finalize_options(self): diff --git a/debian/patches/series b/debian/patches/series index bddf5a0..9b3b2ca 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,6 +1,4 @@ -fixup_setup_file.patch cloud-init-default-cfg.patch -#disable_provisioning.patch -disable-udev-rules.patch -fix-waagent-service.patch -disable_provisioning.patch +start-after-cloudinit.patch +disable-udev-rules-removal.patch +disable-provisioning.patch diff --git a/debian/patches/start-after-cloudinit.patch b/debian/patches/start-after-cloudinit.patch new file mode 100644 index 0000000..235b70e --- /dev/null +++ b/debian/patches/start-after-cloudinit.patch @@ -0,0 +1,12 @@ +--- a/init/ubuntu/walinuxagent.service ++++ b/init/ubuntu/walinuxagent.service +@@ -1,7 +1,7 @@ + [Unit] + Description=Azure Linux Agent +-After=network.target +-After=sshd.service ++After=network-online.target cloud-final.service ++Wants=network-online.target sshd.service sshd-keygen.service cloud-final.service + ConditionFileIsExecutable=/usr/sbin/waagent + ConditionPathExists=/etc/waagent.conf + |