mirror of
https://github.com/opnsense/src.git
synced 2026-02-18 18:20:26 -05:00
EC2: Set PCIe eject timeout to 0
Since PCIe device detaching is done via API, there is no opportunity to "press the attention button a second time" and thus the 5 second timeout mandated by PCIe serves no purpose. MFC after: 2 weeks Sponsored by: Amazon (cherry picked from commit 80febaa1714e897d67a8217edc305a0e81498a6f)
This commit is contained in:
parent
217fce1377
commit
f852f4f7b6
1 changed files with 6 additions and 0 deletions
|
|
@ -79,6 +79,12 @@ ec2_common() {
|
|||
# historical "nvd" driver.
|
||||
echo 'hw.nvme.use_nvd="0"' >> ${DESTDIR}/boot/loader.conf
|
||||
|
||||
# Reduce the timeout for PCIe Eject ("hotunplug") requests. PCIe
|
||||
# mandates a 5 second timeout to allow someone to cancel the eject
|
||||
# by pressing the "Attention button" a second time, but in the EC2
|
||||
# environment this delay serves no purpose.
|
||||
echo 'hw.pci.pcie_hp_detach_timeout="0"' >> ${DESTDIR}/boot/loader.conf
|
||||
|
||||
# Disable KbdInteractiveAuthentication according to EC2 requirements.
|
||||
sed -i '' -e \
|
||||
's/^#KbdInteractiveAuthentication yes/KbdInteractiveAuthentication no/' \
|
||||
|
|
|
|||
Loading…
Reference in a new issue