From mboxrd@z Thu Jan 1 00:00:00 1970 From: George Dunlap Subject: Re: [PATCH 1/2] xgetty: Do not edit /etc/inittab when switching from Xen to Linux and back Date: Fri, 15 Nov 2013 10:28:48 +0000 Message-ID: <5285F760.6020702@eu.citrix.com> References: <1384429449-13692-1-git-send-email-daniel.kiper@oracle.com> <1384429449-13692-2-git-send-email-daniel.kiper@oracle.com> <1384429865.12096.3.camel@hastur.hellion.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1384429865.12096.3.camel@hastur.hellion.org.uk> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell , Daniel Kiper Cc: keir@xen.org, xen-devel@lists.xen.org, ian.jackson@eu.citrix.com, jbeulich@suse.com, stefano.stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org On 14/11/13 11:51, Ian Campbell wrote: > On Thu, 2013-11-14 at 12:44 +0100, Daniel Kiper wrote: >> xgetty establishes serial console name from system boot command >> line (/proc/cmdline) and then runs getty. This is very useful if >> someone switches very often between Linux and Xen and uses serial >> console. xgetty does boring things and runs getty on relevant line. >> This way nobody needs to worry about /etc/inittab changes anymore. > This seems like it could be very useful, but it doesn't seem at all Xen > specific. I think it would be worth trying to get this into an upstream > -- e.g. agetty (since that is what you appear to shell out to). I've been using an inittab entry like this: T0:23:respawn:bash -c "/sbin/getty --noclear -L $(/etc/find-remote-tty.sh) 115200 vt102" But having agetty able to search the Linux command-line for the argument is much better. -George