[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#60890: gdm: Installs default tty7 line in Xservers -- breaks system



On Tue, Mar 21, 2000 at 04:13:37PM -0600, gvl@phorce1.com wrote:
> When installed with apt-get gdm postinst inserts a default line in
> the Xservers file of ':0 local /usr/bin/X11/X vt7' if instructed to
> handle a local session. This will cause ANY system that has 'login'

gdm uses its own line in /etc/gdm/gdm.conf, not the Xservers file.

> running on vt7 to break. In the instance of login running on the vt

Yes, it does.

> postinst should ASK what vt you normally run X on (12 on my system) and
> insert that vt as the default *OR* postinst should NOT install a 'vtxx'

> directive in the Xservers file so it will start on the next available vt. If
> not installing the 'vtxx' directive, postinst should put up an interactive
> NOTE suggesting that the customer modify the file by hand to include a
> default vt.

This will cause the exact same bug depending on the SMPness/speed of the
system.  X must be forced to a vt, or it can race with init for the
getty's, and both can end up on vt2, for example.  Do *NOT* change the
dm to not force a VT, as it will just cause the same bug but be far
harder to determine the cause.

> for loss of my keyboard. 'xdm' does NOT start itself when installed, which

xdm checks /etc/X11/xdm/xdm.options, whether it is running, and whether
you are currently on the display it is going to manage.

gdm checks whether it is running, and whether you are currently on the
display it is going to manage.

I can't speak for wdm, however...

One should also remember kdm, and it too has the same problem (being
just a modification of xdm...)

> is a plus in this situation, but it also does not warn you of the possible
> conflict in the Xservers file so a manual start after installation ends up

Branden, is there any way that X could somehow detect that a getty is
running and refuse to start?  That would solve this problem for any dm
in the future.

Otherwise, this needs some sort of policy for dm's in place, which I
think would be far too rushed to get it in for potato.  New installs
will not see this problem unless they modify /etc/inittab for a getty on
tty7.  Old installs have xdm forced to tty7 as well, and in tracing this
for gdm, found that most people expect tty7 to be for X, and don't but a
getty there.  The documentation could certainly be improved on this.

I think that if there is no way to get the X server to fail when a getty
is there, then we should look into an update-inittab type script to
assign dm's and whatever else needs to be assigned to a tty.

-- 
Ryan Murray, (rmurray@cyberhqz.com, rmurray@stormix.com)
Programmer, Stormix Technologies Inc.
The opinions expressed here are my own.

Attachment: pgpR47umcfjnv.pgp
Description: PGP signature


Reply to: