From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 025CD198003 for ; Sat, 9 Mar 2013 02:50:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6F2A8E07DD; Sat, 9 Mar 2013 02:50:10 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DC870E07DD for ; Sat, 9 Mar 2013 02:50:09 +0000 (UTC) Received: from mail-qa0-f42.google.com (mail-qa0-f42.google.com [209.85.216.42]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: mattst88) by smtp.gentoo.org (Postfix) with ESMTPSA id 0611D33DCD9 for ; Sat, 9 Mar 2013 02:50:06 +0000 (UTC) Received: by mail-qa0-f42.google.com with SMTP id cr7so134213qab.8 for ; Fri, 08 Mar 2013 18:50:02 -0800 (PST) X-Received: by 10.224.31.16 with SMTP id w16mr6952602qac.52.1362797402348; Fri, 08 Mar 2013 18:50:02 -0800 (PST) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-catalyst@lists.gentoo.org Reply-to: gentoo-catalyst@lists.gentoo.org MIME-Version: 1.0 Received: by 10.49.121.167 with HTTP; Fri, 8 Mar 2013 18:49:42 -0800 (PST) In-Reply-To: <6d3c93bde552943c26acbf6c1946dae23821860c.1362366795.git.wking@tremily.us> References: <48b5405f720c6aa9e9472be0fc3a66e7ef336d3e.1362329514.git.wking@tremily.us> <6d3c93bde552943c26acbf6c1946dae23821860c.1362366795.git.wking@tremily.us> From: Matt Turner Date: Fri, 8 Mar 2013 18:49:42 -0800 Message-ID: Subject: Re: [gentoo-catalyst] [PATCH] livecd-bashrc: Avoid a startx race by restricting to tty1 To: gentoo-catalyst@lists.gentoo.org Cc: "W. Trevor King" Content-Type: text/plain; charset=ISO-8859-1 X-Archives-Salt: 1c255717-f4aa-4b2a-a1b2-175993c510ce X-Archives-Hash: 7de2362c88b5bd4ab9c797254e5eb2c3 On Sun, Mar 3, 2013 at 7:13 PM, W. Trevor King wrote: > From: "W. Trevor King" > > Otherwise several virtual consoles may notice the existence of > /etc/startx, and spawn simultaneous X servers. This way we only spawn > a single X server, regardless of timing. > > A better solution here is probably to add a "start" or "x-server" > service to /etc/init.d/, but that's more work than I'm up to at the > moment. > --- > livecd/files/livecd-bashrc | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/livecd/files/livecd-bashrc b/livecd/files/livecd-bashrc > index 983e657..7abfbd4 100644 > --- a/livecd/files/livecd-bashrc > +++ b/livecd/files/livecd-bashrc > @@ -4,7 +4,7 @@ if [ ! "$(grep nox /proc/cmdline)" ] > then > if [ -x /usr/bin/X ] > then > - if [ -e /etc/startx ] > + if [ -e /etc/startx ] && [ "$(tty)" == /dev/tty1 ] > then > rm -f /etc/startx > ##STARTX > -- > 1.8.2.rc0.16.g20a599e > > Seems reasonable, but I don't really know how any of this works. Have you experienced the problem you describe? I.e., multiple X servers starting.