Changeset View
Changeset View
Standalone View
Standalone View
head/release/tools/ec2.conf
Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | vm_extra_pre_umount() { | ||||
# Some older EC2 hardware used a version of Xen with a bug in its | # Some older EC2 hardware used a version of Xen with a bug in its | ||||
# emulated serial port. It is not clear if EC2 still has any such | # emulated serial port. It is not clear if EC2 still has any such | ||||
# nodes, but apply the workaround just in case. | # nodes, but apply the workaround just in case. | ||||
echo 'hw.broken_txfifo="1"' >> ${DESTDIR}/boot/loader.conf | echo 'hw.broken_txfifo="1"' >> ${DESTDIR}/boot/loader.conf | ||||
# Load the kernel module for the Amazon "Elastic Network Adapter" | # Load the kernel module for the Amazon "Elastic Network Adapter" | ||||
echo 'if_ena_load="YES"' >> ${DESTDIR}/boot/loader.conf | echo 'if_ena_load="YES"' >> ${DESTDIR}/boot/loader.conf | ||||
# Use the "nda" driver for accessing NVMe disks rather than the | |||||
# historical "nvd" driver. | |||||
echo 'hw.nvme.use_nvd="0"' >> ${DESTDIR}/boot/loader.conf | |||||
# Disable ChallengeResponseAuthentication according to EC2 | # Disable ChallengeResponseAuthentication according to EC2 | ||||
# requirements. | # requirements. | ||||
sed -i '' -e \ | sed -i '' -e \ | ||||
's/^#ChallengeResponseAuthentication yes/ChallengeResponseAuthentication no/' \ | 's/^#ChallengeResponseAuthentication yes/ChallengeResponseAuthentication no/' \ | ||||
${DESTDIR}/etc/ssh/sshd_config | ${DESTDIR}/etc/ssh/sshd_config | ||||
# Use the NTP service provided by Amazon | # Use the NTP service provided by Amazon | ||||
sed -i '' -e 's/^pool/#pool/' \ | sed -i '' -e 's/^pool/#pool/' \ | ||||
Show All 19 Lines |