On line 21 of /etc/X11/startDM.sh, the SVCNAME variable is set to 'xdm'. This doesn't work for openrc, which expects the name of the service to be in RC_SVCNAME. Ordinarily this doesn't cause any problems as startDM.sh is started from /etc/init.d/xdm so the RC_SVCNAME is already defined by openrc. However, if startDM.sh is started by init as a result of `telinit a`, the correct environment variable is not defined and startDM.sh doesn't work.
sigh... xinit again. Every time I start to believe I finally got it figured out, someone proves me wrong... Thanks for the report :)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ad67a504fa8619fff2d6c223b5fe7a288c4d5b3 commit 9ad67a504fa8619fff2d6c223b5fe7a288c4d5b3 Author: Matt Turner <mattst88@gentoo.org> AuthorDate: 2019-02-28 17:50:26 +0000 Commit: Matt Turner <mattst88@gentoo.org> CommitDate: 2019-02-28 17:50:26 +0000 x11-apps/xinit: s/SVCNAME/RC_SVCNAME/ Closes: https://bugs.gentoo.org/313287 Signed-off-by: Matt Turner <mattst88@gentoo.org> x11-apps/xinit/files/startDM.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Yes, s/SVCNAME/RC_SVCNAME/ is the correct fix. SVCNAME is a leftover from baselayout-1.x, which I would like to get rid of, but there isn't a clean way to do that.