| 1 |
#! /bin/bash |
| 2 |
|
| 3 |
fai-sed "s/PermitRootLogin yes/PermitRootLogin without-password/" /etc/ssh/sshd_config |
| 4 |
ainsl /etc/ssh/sshd_config 'ClientAliveInterval 120' |
| 5 |
|
| 6 |
ainsl -a /etc/modprobe.d/blacklist.conf 'blacklist pcspkr' |
| 7 |
ainsl -a /etc/modprobe.d/blacklist.conf 'blacklist floppy' |
| 8 |
|
| 9 |
cleanup_base |
| 10 |
|
| 11 |
rm -f $target/etc/resolv.conf \ |
| 12 |
$target/etc/udev/rules.d/70-persistent-net.rules \ |
| 13 |
$target/lib/udev/write_net_rules |
| 14 |
|
| 15 |
# FIXME: DHCP RFC3442 is used incorrect in Azure |
| 16 |
if [ -f $target/etc/dhcp/dhclient.conf ]; then |
| 17 |
fai-sed 's,rfc3442-classless-static-routes,disabled-\0,' /etc/dhcp/dhclient.conf |
| 18 |
fi |