Bob Ball | 5b9adb6 | 2015-02-10 08:09:08 +0000 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | set -eux |
| 3 | |
| 4 | # Need to set barrier=0 to avoid a Xen bug |
| 5 | # https://bugs.launchpad.net/ubuntu/+source/linux/+bug/824089 |
| 6 | sed -i -e 's/errors=/barrier=0,errors=/' /etc/fstab |
| 7 | |
| 8 | # Allow root to login with a password |
| 9 | sed -i -e 's/.*PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config |
| 10 | |
| 11 | # Install the XenServer tools so IP addresses are reported |
| 12 | wget --no-proxy @XS_TOOLS_URL@ -O /root/tools.deb |
| 13 | dpkg -i /root/tools.deb |
| 14 | rm /root/tools.deb |