summaryrefslogtreecommitdiff
path: root/tools/cloud-init/azure/99-walinuxagent.chroot
diff options
context:
space:
mode:
authorKim Hagen <kim.sidney@gmail.com>2018-10-23 23:58:42 +0200
committerKim Hagen <kim.sidney@gmail.com>2018-10-23 23:58:42 +0200
commit16cc9be3ba331216392e988f20183ab8c4eda0ce (patch)
treee39eef286e6c838ba0382cd76a8269fe591b53c7 /tools/cloud-init/azure/99-walinuxagent.chroot
parentf6c147b9ae7d2d62cf765c0b91514a052209b591 (diff)
downloadvyos-build-16cc9be3ba331216392e988f20183ab8c4eda0ce.tar.gz
vyos-build-16cc9be3ba331216392e988f20183ab8c4eda0ce.zip
Separate files needed for different cloud providers
Fix serial console speed settings Add google cloud image generation
Diffstat (limited to 'tools/cloud-init/azure/99-walinuxagent.chroot')
-rwxr-xr-xtools/cloud-init/azure/99-walinuxagent.chroot18
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/cloud-init/azure/99-walinuxagent.chroot b/tools/cloud-init/azure/99-walinuxagent.chroot
new file mode 100755
index 00000000..1de525cf
--- /dev/null
+++ b/tools/cloud-init/azure/99-walinuxagent.chroot
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+echo I: Waagent / Cloud init
+
+# debug info:
+#echo ForwardToConsole=yes >> /etc/systemd/journald.conf
+
+# dhcp issue on azure
+sed -ie 's,rfc3442-classless-static-routes,disabled-\0,' /etc/dhcp/dhclient.conf
+
+rm -f /etc/ssh/ssh_host_*
+rm -f /var/log/waagent.log
+rm -r /var/cache/apt/*
+mkdir -p /var/cache/apt/archives
+rm -r /var/lib/apt/lists/*
+
+# prevent systemd message flooding
+echo ':msg, contains, "Time has been changed" ~' > /etc/rsyslog.d/time_msgs.conf