Devuan bug report logs - #88
util-linux: prevent agetty from exiting if a serial port doesn't exist

Package: util-linux; Maintainer for util-linux is Devuan Developers <devuan-dev@lists.dyne.org>; Source for util-linux is src:util-linux.

Reported by: Gregory Nowak <greg@gregn.net>

Date: Thu, 25 May 2017 03:33:01 UTC

Severity: wishlist

Full log


🔗 View this message in rfc822 format

X-Loop: owner@bugs.devuan.org
Subject: bug#88: util-linux: prevent agetty from exiting if a serial port doesn't exist
Reply-To: Gregory Nowak <greg@gregn.net>, 88@bugs.devuan.org
Resent-From: Gregory Nowak <greg@gregn.net>
Resent-To: devuan-bugs@lists.dyne.org
Resent-CC: owner@bugs.devuan.org
Resent-Date: Thu, 25 May 2017 03:33:01 UTC
Resent-Message-ID: <handler.88.B.149568240427608@bugs.devuan.org>
Resent-Sender: owner@bugs.devuan.org
X-Devuan-PR-Message: report 88
X-Devuan-PR-Package: util-linux
X-Devuan-PR-Keywords: 
Received: via spool by submit@bugs.devuan.org id=B.149568240427608
          (code B ref -1); Thu, 25 May 2017 03:33:01 UTC
Received: (at submit) by bugs.devuan.org; 25 May 2017 03:20:04 +0000
Delivered-To: devuanbugs@dyne.org
Received: from mail.dyne.org [178.62.188.7]
	by fulcanelli with IMAP (fetchmail-6.3.26)
	for <debbugs@localhost> (single-drop); Thu, 25 May 2017 05:20:04 +0200 (CEST)
Received: from vserver.gregn.net (vserver.gregn.net [174.136.110.154])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by tupac2.dyne.org (Postfix) with ESMTPS id 546C518E53F
	for <submit@bugs.devuan.org>; Thu, 25 May 2017 03:16:24 +0000 (UTC)
Authentication-Results: tupac2.dyne.org; dkim=pass
	reason="2048-bit key; unprotected key"
	header.d=gregn.net header.i=@gregn.net header.b=lBokMiY5;
	dkim-adsp=pass; dkim-atps=neutral
Received: from rpitest.gregn.net (unknown [IPv6:2001:470:f156:0:ba27:ebff:fe91:9a8])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by vserver.gregn.net (Postfix) with ESMTPSA id 91188203;
	Wed, 24 May 2017 20:16:22 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=gregn.net; s=default;
	t=1495682182; bh=TWDJdceQJSSr6vPaYIcQJf49u7NXUr78WJ6rCaiMofk=;
	h=From:To:Subject:Date:From;
	b=lBokMiY5p+5WW0EMVNfCt9CTuLdVuLC09db+ZxTnD/02DR28aiceulxVpek6cSQcE
	 vd4mL7jwezMJ4qyc1vpV1pYB5wB20SMdfOoUhwaCsLlXA9bYSZOkb47XtacuC3Fk5Q
	 qasGSnCk6eXw4YxPT5lmh6Pd8GHCkQ8KbyTY2MD3oLjVP7c6XxpAYDAyVw1QDhV/J6
	 1zU9Xw5BOWZoXWEoI5n0rGHiTPw2ZLTSBtwUTA4ygjEJsGURZHd4oDI3d3dcfHtskg
	 mKICaGa4XearBPmJjEMuwQu55Em5u8kXfP9i5mcFhfnpOjWgWhEh9p3J/TMmUZ4lJv
	 5BLcgxUeIhErQ==
Received: from greg by rpitest.gregn.net with local (Exim 4.84_2)
	(envelope-from <greg@gregn.net>)
	id 1dDjG9-00033I-Ea; Wed, 24 May 2017 20:16:21 -0700
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Gregory Nowak <greg@gregn.net>
To: Devuan Bug Tracking System <submit@bugs.devuan.org>
Message-ID: <20170525031616.10011.93267.reportbug@rpitest.lan.lan>
X-Mailer: reportbug 6.6.3+devuan1.3
Date: Wed, 24 May 2017 20:16:16 -0700
X-Virus-Scanned: clamav-milter 0.99.2 at vserver
X-Virus-Status: Clean
X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,
	DKIM_VALID_AU,RP_MATCHES_RCVD,SPF_PASS autolearn=disabled version=3.4.0
X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on tupac2
Package: util-linux
Version: 2.26.2-6+devuan1
Severity: wishlist

Dear Maintainer,
Please consider adding the ability for agetty/getty to keep running if attached to a serial port that doesn't exist, perhaps by passing a flag to it at invokation. This request is related to:
<https://git.devuan.org/sdk/arm-sdk/issues/4>
If agetty/getty was passed for example a --no-terminate flag, and attached to a valid serial port, it should behave like it does now. If getty/agetty was passed the --no-terminate flag for example, and attached to a serial port which doesn't exist, it would keep running instead of terminating. The agetty/getty instance doesn't need to check if that serial port becomes active later, The user would respawn agetty/getty via init if he/she wanted to use it on a serial port which wasn't active previously, but which later became active.

This functionality would make it possible to have agetty listening on /dev/ttyS0 on the raspberry pi3, regardless of if enable_uart=1 was set or not set in /boot/config.txt, and therefore regardless of if /dev/ttyS0 exists or not. This in turn would greatly help in resolving issue four for arm-sdk mentioned above.
Thank you.


-- System Information:

Architecture: aarch64

Kernel: Linux 4.10.0-rc5-v8+ (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages util-linux depends on:
ii  initscripts     2.88dsf-59.2+devuan2
ii  libblkid1       2.26.2-6+devuan1
ii  libc6           2.19-18+deb8u9
ii  libfdisk1       2.26.2-6+devuan1
ii  libmount1       2.26.2-6+devuan1
ii  libncurses5     5.9+20140913-1+b1
ii  libpam0g        1.1.8-3.1+deb8u2
ii  libselinux1     2.3-2
ii  libslang2       2.3.0-2
ii  libsmartcols1   2.26.2-6+devuan1
ii  libtinfo5       5.9+20140913-1+b1
ii  libuuid1        2.26.2-6+devuan1
ii  lsb-base        4.1+devuan2
ii  sysvinit-utils  2.88dsf-59.2+devuan2
ii  tzdata          2017b-0+deb8u1
ii  zlib1g          1:1.2.8.dfsg-2+b1

util-linux recommends no packages.

Versions of packages util-linux suggests:
ii  dosfstools          3.0.27-1
ii  kbd                 1.15.5-2
pn  util-linux-locales  <none>

-- no debconf information


Send a report that this bug log contains spam.


Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Fri Apr 19 10:01:14 2024;