diff options
Diffstat (limited to 'tools/cloud-init/99-walinuxagent.chroot')
-rwxr-xr-x | tools/cloud-init/99-walinuxagent.chroot | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/cloud-init/99-walinuxagent.chroot b/tools/cloud-init/99-walinuxagent.chroot new file mode 100755 index 00000000..f8848a2c --- /dev/null +++ b/tools/cloud-init/99-walinuxagent.chroot @@ -0,0 +1,17 @@ +#!/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/* +rm -r /var/lib/apt/lists/* + +# prevent systemd message flooding +echo ':msg, contains, "Time has been changed" ~' > /etc/rsyslog.d/time_msgs.conf |