systemd: use upstream method to enable and configure debug shell

With systemd-debug-generator installed we can use the standard
"systemd.debug_shell" kernel command line parameter to enable the debug
shell. Since systemd 243 the tty can also be changed by appending
"=ttyXYZ" to that parameter.

Use this method instead of enabling the debug shell on all systems
by default.

Signed-off-by: Matthias Reichl <hias@horus.com>
This commit is contained in:
Matthias Reichl 2019-09-18 15:10:42 +02:00
parent e1d6e92907
commit 259a5b7f73

View File

@ -156,8 +156,19 @@ post_makeinstall_target() {
safe_remove $INSTALL/usr/bin/systemd-nspawn safe_remove $INSTALL/usr/bin/systemd-nspawn
safe_remove $INSTALL/usr/lib/systemd/system/systemd-nspawn@.service safe_remove $INSTALL/usr/lib/systemd/system/systemd-nspawn@.service
# remove genetators/catalog # remove unneeded generators
safe_remove $INSTALL/usr/lib/systemd/system-generators for gen in $INSTALL/usr/lib/systemd/system-generators/*; do
case "$gen" in
*/systemd-debug-generator)
# keep it
;;
*)
safe_remove "$gen"
;;
esac
done
# remove catalog
safe_remove $INSTALL/usr/lib/systemd/catalog safe_remove $INSTALL/usr/lib/systemd/catalog
# remove partition # remove partition
@ -257,5 +268,4 @@ post_install() {
enable_service usercache.service enable_service usercache.service
enable_service kernel-overlays.service enable_service kernel-overlays.service
enable_service hwdb.service enable_service hwdb.service
enable_service debug-shell.service
} }