mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
19 lines
470 B
Bash
Executable File
19 lines
470 B
Bash
Executable File
#!/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
|