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

Bug#987124: console-setup not work properly with plymouth



Check if systemd is present to avoid errors if it is not.

--- /lib/console-setup/console-setup.sh	2023-02-09 01:33:51.198998809 +0300
+++ /lib/console-setup/console-setup.sh	2023-02-09 01:59:48.786418782 +0300
@@ -16,6 +16,13 @@
               -nt /etc/default/keyboard ] || do_configure=yes
         [ /etc/console-setup/cached_setup_terminal.sh \
               -nt /etc/default/console-setup ] || do_configure=yes
+
+        # if plymouth-exit.service was launched, this means
+        # plymouth released tty1 for us to fix
+        command -v systemctl >/dev/null && \
+              [ $(ps -p 1 -o comm=) == "systemd" ] && \
+              systemctl is-active -q plymouth-quit.service && \
+              do_configure=yes
         ;;
 esac


Other than that I do not know how to quickly detect exited plymouth and properly order console-setup launch in a SysV boot.
Maybe modify /etc/init.d/console-setup.sh to hold while plymouthd is running (with a timeout).


Reply to: