From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 31211139337 for ; Thu, 29 Jul 2021 04:05:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 69DD1E094F; Thu, 29 Jul 2021 04:05:51 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C18BBE094F for ; Thu, 29 Jul 2021 04:05:50 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0DBA23406F2 for ; Thu, 29 Jul 2021 04:05:49 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 465AE7CE for ; Thu, 29 Jul 2021 04:05:47 +0000 (UTC) From: "Georgy Yakovlev" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Georgy Yakovlev" Message-ID: <1627531467.8907313e7ca1d065b9d49a29afeade02ea8a49b8.gyakovlev@gentoo> Subject: [gentoo-commits] proj/livecd-tools:master commit in: init.d/ X-VCS-Repository: proj/livecd-tools X-VCS-Files: init.d/fixinittab X-VCS-Directories: init.d/ X-VCS-Committer: gyakovlev X-VCS-Committer-Name: Georgy Yakovlev X-VCS-Revision: 8907313e7ca1d065b9d49a29afeade02ea8a49b8 X-VCS-Branch: master Date: Thu, 29 Jul 2021 04:05:47 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 6e810bd4-59d8-4b31-85d4-8221b8915634 X-Archives-Hash: 8aa3b61e0912813e6cfde46795368938 commit: 8907313e7ca1d065b9d49a29afeade02ea8a49b8 Author: Georgy Yakovlev gentoo org> AuthorDate: Thu Jul 29 03:57:28 2021 +0000 Commit: Georgy Yakovlev gentoo 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 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