diff options
author | Colin Guthrie <colin@mageia.org> | 2012-03-08 01:23:59 +0000 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2012-03-08 21:59:23 +0000 |
commit | d26713c9fc8e91c27e6a2c6ee6ac22cfd036310d (patch) | |
tree | 96f4242a620cab0c1b054ea450874cb7dc1ed685 | |
parent | 35ab457e5221a404eeb79be9a00712c74545feba (diff) | |
download | initscripts-d26713c9fc8e91c27e6a2c6ee6ac22cfd036310d.tar initscripts-d26713c9fc8e91c27e6a2c6ee6ac22cfd036310d.tar.gz initscripts-d26713c9fc8e91c27e6a2c6ee6ac22cfd036310d.tar.bz2 initscripts-d26713c9fc8e91c27e6a2c6ee6ac22cfd036310d.tar.xz initscripts-d26713c9fc8e91c27e6a2c6ee6ac22cfd036310d.zip |
Add a simple message for systemd users when X11 fails to initialise.
This system is rather crude and uses mingetty to ensure the tty is properly
reset and initialised. A more complete solution would do all this internally
and perhaps offer some options to e.g. enter the root password and automatically
run drakx11.
https://bugs.mageia.org/show_bug.cgi?id=4769
-rw-r--r-- | Makefile | 2 | ||||
-rwxr-xr-x | display-manager-failure-message | 26 |
2 files changed, 28 insertions, 0 deletions
@@ -42,6 +42,8 @@ install: mkdir -p $(ROOT)/etc/X11 install -m755 prefdm $(ROOT)/etc/X11/prefdm + mkdir -p $(ROOT)/usr/bin + install -m755 display-manager-failure-message $(ROOT)/usr/bin/display-manager-failure-message install -m755 -d $(ROOT)/etc/rc.d $(ROOT)/etc/sysconfig install -m755 rc.d/rc rc.d/rc.local rc.d/rc.sysinit $(ROOT)/etc/rc.d/ diff --git a/display-manager-failure-message b/display-manager-failure-message new file mode 100755 index 00000000..9e51b17f --- /dev/null +++ b/display-manager-failure-message @@ -0,0 +1,26 @@ +#!/bin/bash + +echo >&2 +echo "Sorry, but there has been a problem starting your graphical display." >&2 +echo >&2 +echo "In order to debug your problem we will automatically switch to a text-based" >&2 +echo "login screen from where login as the root user and run the 'drakx11' utility" >&2 +echo "to configure your graphical system." >&2 +echo >&2 +echo "After configuration, you can restart your graphical environment via the command:" >&2 +echo " systemctl default" >&2 +echo "at which point you will be automatically logged out while the graphical system" >&2 +echo "starts." >&2 +echo >&2 +echo "If you would prefer to avoid this message and go straight to a text-based login" >&2 +echo "system at boot, simply change the symlink /etc/systemd/system/default.target to" >&2 +echo "point instead to /lib/systemd/system/multi-user.target" >&2 +echo >&2 +echo "Good luck :)" >&2 +echo >&2 +echo "Press any key." >&2 +read -n 1 + +echo >&2 +echo "Switching to multi-user.target..." >&2 +systemctl isolate multi-user.target |