Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Sep 2021 01:29:06 GMT
From:      Colin Percival <cperciva@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: d9242253a05c - stable/13 - EC2: Tell gptboot to skip its 3 second wait
Message-ID:  <202109110129.18B1T6Yu042449@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by cperciva:

URL: https://cgit.FreeBSD.org/src/commit/?id=d9242253a05c99915a047890abfe877bf314152d

commit d9242253a05c99915a047890abfe877bf314152d
Author:     Colin Percival <cperciva@FreeBSD.org>
AuthorDate: 2021-06-21 22:35:16 +0000
Commit:     Colin Percival <cperciva@FreeBSD.org>
CommitDate: 2021-09-11 01:27:58 +0000

    EC2: Tell gptboot to skip its 3 second wait
    
    Nobody is going to hit a key to tell gptboot to select another disk,
    so there's no point waiting.
    
    (cherry picked from commit 524260db7683681c7deec9f1968c15a717317685)
---
 release/tools/ec2.conf | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/release/tools/ec2.conf b/release/tools/ec2.conf
index bfda9052421f..888a446659a5 100644
--- a/release/tools/ec2.conf
+++ b/release/tools/ec2.conf
@@ -88,6 +88,10 @@ EOF
 	echo 'autoboot_delay="-1"' >> ${DESTDIR}/boot/loader.conf
 	echo 'beastie_disable="YES"' >> ${DESTDIR}/boot/loader.conf
 
+	# Tell gptboot not to wait 3 seconds for a keypress which won't
+	# arrive either.
+	printf -- "-n\n" > ${DESTDIR}/boot.config
+
 	# The emulated keyboard attached to EC2 instances is inaccessible to
 	# users, and there is no mouse attached at all; disable to keyboard
 	# and the keyboard controller (to which the mouse would attach, if



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202109110129.18B1T6Yu042449>