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
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.