Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 401523

Summary: x11-apps/xdm-1.1.11: does not start from within a chrooted environment if LiveDVD was booted with nox
Product: Gentoo Linux Reporter: Martin Mokrejš <mmokrejs>
Component: Current packagesAssignee: Gentoo X packagers <x11>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Martin Mokrejš 2012-01-30 14:47:50 UTC
In bug #401373 I was asked to file a separate bug for the case when user boots off a LiveDVD, mount a fucntional Gentoo installation from a harddrive, chroots into its filesystem and wants to start xdm. Mayb ethe issue is somewhere else but it seems /etc/init.d/xdm sniffs out that the LiveDVD was booted with "nox" kernel commandline (how it is done in the chrooted environment is out of my knowledge). ;)

Here is what i tried with LiveDVD-12.0, x86 kernel with framebuffer enabled (the installation on the harddrive is ~x86, pretty current):

Gentoo-2012 ~ # mount /dev/sdc3 /mnt/gentoo/
Gentoo-2012 ~ # mount -t proc none /mnt/gentoo/proc
Gentoo-2012 ~ # mount -o bind /dev /mnt/gentoo/dev
Gentoo-2012 ~ # chroot /mnt/gentoo/ /bin/bash
chrooted / # source /etc/profile
chrooted / # env-update
!!! Invalid PORTDIR_OVERLAY (not a dir): '/usr/portage'
!!! Invalid PORTDIR_OVERLAY (not a dir): '/usr/local/portage'
!!! main-repo not set in DEFAULT and PORTDIR is empty.
Unavailable repository 'gentoo' referenced by masters entry in '/home/mmokrejs/proj/sci/metadata/layout.conf'
>>> Regenerating /etc/ld.so.cache...
chrooted / # /etc/init.d/xdm restart
 * WARNING: xdm is already starting
chrooted / # /etc/init.d/xdm stop
 * ERROR: xdm stopped by something else
chrooted / # /etc/init.d/xdm start
 * WARNING: xdm is already starting
 rc-service xdm restart
 * WARNING: xdm is already starting
chrooted / # ls -la /etc/.noxdm
....: no such file or directory
Comment 1 Fernando (likewhoa) 2013-03-08 04:32:33 UTC
you shouldn't want to start XDM from inside a chroot in the first place as it will cause all kinds of weird issues but if this is what you want then you need to comment out lines 11,12 & 13 from /etc/init.d/xdm-setup inside your chroot.

Marking as WONTFIX since we cannot get around the 'nox' in cmdline.