diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-02-08 10:54:54 +0100 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-02-09 11:47:53 +0100 |
commit | 7bf52f5d1caff57a653e7cc02e8258511109132c (patch) | |
tree | e058c6659e8f1e159493ae69e117db55e43d9de2 /test/units/testsuite-81.debug-generator.sh | |
parent | semaphore: temporarily pin autopkgtest to v5.32 (diff) | |
download | systemd-7bf52f5d1caff57a653e7cc02e8258511109132c.tar.xz systemd-7bf52f5d1caff57a653e7cc02e8258511109132c.zip |
Add systemd.default_debug_tty=
Let's allow configuring the debug tty independently of enabling/disabling
the debug shell. This allows mkosi to configure the correct tty while
leaving enabling/disabling the debug tty to the user.
Diffstat (limited to 'test/units/testsuite-81.debug-generator.sh')
-rwxr-xr-x | test/units/testsuite-81.debug-generator.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/units/testsuite-81.debug-generator.sh b/test/units/testsuite-81.debug-generator.sh index fddf85a54c..ef1e205aac 100755 --- a/test/units/testsuite-81.debug-generator.sh +++ b/test/units/testsuite-81.debug-generator.sh @@ -62,6 +62,13 @@ SYSTEMD_PROC_CMDLINE="$CMDLINE" run_and_list "$GENERATOR_BIN" "$OUT_DIR" link_endswith "$OUT_DIR/early/default.target.wants/debug-shell.service" /lib/systemd/system/debug-shell.service grep -F "/dev/tty666" "$OUT_DIR/early/debug-shell.service.d/50-tty.conf" +# Same thing, but with custom tty using systemd.default_debug_tty +: "debug-shell: regular + systemd.default_debug_tty=/dev/tty666 systemd.debug_shell=yes" +CMDLINE="$CMDLINE systemd.default_debug_tty=/dev/tty666 systemd.debug_shell=yes" +SYSTEMD_PROC_CMDLINE="$CMDLINE" run_and_list "$GENERATOR_BIN" "$OUT_DIR" +link_endswith "$OUT_DIR/early/default.target.wants/debug-shell.service" /lib/systemd/system/debug-shell.service +grep -F "/dev/tty666" "$OUT_DIR/early/debug-shell.service.d/50-tty.conf" + # Now override the default target via systemd.unit= : "debug-shell: regular + systemd.unit=" CMDLINE="$CMDLINE systemd.unit=my-fancy.target" |