summaryrefslogtreecommitdiff
path: root/tools/cloud-init/azure/99-walinuxagent.chroot
blob: 1de525cf142309d8fb1ae880667f29f56f226f9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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