commit: 8907313e7ca1d065b9d49a29afeade02ea8a49b8
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 29 03:57:28 2021 +0000
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
CommitDate: Thu Jul 29 04:04:27 2021 +0000
URL: https://gitweb.gentoo.org/proj/livecd-tools.git/commit/?id=8907313e
init.d/fixinittab: auto-enable arm64 ttyAMA0 console
our sysvinit package adds the following line in /etc/inittab on arm64:
f0:12345:respawn:/sbin/agetty 9600 ttyAMA0 vt100
adjust fixinittab to comment out that entry, and automatically
configure console on ttyAMA0 with proper baud rate returned by stty.
if the line is left uncommented init will spawn a reular login on that
console, that may conflict with console= option user passed.
if the user passes console=***, automatic configuration is omitted.
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
init.d/fixinittab | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/init.d/fixinittab b/init.d/fixinittab
index 5c893cd..2b43021 100644
--- a/init.d/fixinittab
+++ b/init.d/fixinittab
@@ -23,10 +23,11 @@ start()
sed -i -e '/^c[0-9]/ s/^/#/' /etc/inittab
sed -i -e '/^s[01]/ s/^/#/' /etc/inittab
sed -i -e '/^b0/ s/^/#/' /etc/inittab
+ sed -i -e '/^f0/ s/^/#/' /etc/inittab
if [ -z "${LIVECD_CONSOLE}" ]
then
- for c in hvc0 ttyHV0
+ for c in hvc0 ttyHV0 ttyAMA0
do
if [ -c "/dev/${c}" ]
then