From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa.local.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 Date: Thu, 15 Oct 2026 14:48:48 +0000 From: Egor Shestakov To: make-initrd@lists.altlinux.org Message-ID: References: <87a657ee-566d-431e-9581-e11b0a42de73@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87a657ee-566d-431e-9581-e11b0a42de73@gmail.com> Subject: [make-initrd] [RFC PATCH] runtime: fix a suspended boot after rdshell X-BeenThere: make-initrd@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: make-initrd@lists.altlinux.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Oct 2026 14:49:02 -0000 Archived-At: List-Archive: Привет, я похоже нашел причину почему все зависает. Применил патч у себя и все теперь работает нормально. -- >8 -- Rdshell takes a write lock to /dev/console but never release it. Rdshell can run in foreground, because the rootdelayd doesn't wait for anything else and fails in an idle loop after rdshell has been invoked. Signed-off-by: Egor Shestakov --- features/runtime/data/sbin/rootdelayd | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/features/runtime/data/sbin/rootdelayd b/features/runtime/data/sbin/rootdelayd index 7ea82afcf..85060cefd 100755 --- a/features/runtime/data/sbin/rootdelayd +++ b/features/runtime/data/sbin/rootdelayd @@ -37,7 +37,8 @@ while :; do mkdir -p -- "$disabled" fd_lock 90 /dev/console - rdshell "Emergency shell" & + rdshell "Emergency shell" + fd_unlock 90 continue fi @@ -91,7 +92,9 @@ while :; do mkdir -p -- "$disabled" - rdshell "$msg" & + rdshell "$msg" + + fd_unlock 90 continue fi -- Egor Shestakov ved ascii(0x40) altlinux ascii(0x2E) org