]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
profile.d: add instructions how to deactivate 80-systemd-osc-context.sh
authorZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Thu, 28 May 2026 10:45:23 +0000 (12:45 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 28 May 2026 16:08:07 +0000 (01:08 +0900)
This was requested in https://github.com/systemd/systemd/issues/42333.
Indeed, this integration is using three levels of systemd magick, so
doing this correctly is not obvious. Let's include specific instructions
to help people for whom this integration is causing problems.

profile.d/70-systemd-shell-extra.sh
profile.d/80-systemd-osc-context.sh

index 46dd82d9ce1b32731662ee5a7f2a58f522718858..b47edc3e3625d24b6e08edf5c78deabde6814c55 100644 (file)
 # credentials shell.prompt.prefix, shell.prompt.suffix and shell.welcome, and
 # are propagated into these environment variables by pam_systemd(8).
 
+# This file is "activated" through systemd-tmpfiles which links it into
+# /etc/profile.d/. To disable this, remove the
+# /etc/profile.d/70-systemd-shell-extra.sh symlink and mask the
+# 20-systemd-shell-extra.conf snippet (as root):
+#
+#   test -h /etc/profile.d/70-systemd-shell-extra.sh && \
+#     rm -v /etc/profile.d/70-systemd-shell-extra.sh && \
+#     ln -s /dev/null /etc/tmpfiles.d/20-systemd-shell-extra.conf
+
 if [ -n "${SHELL_PROMPT_PREFIX-}" ]; then
     if [ -n "${BASH_VERSION-}" ] && [ "$PS1" = "\\s-\\v\\\$ " ]; then
         PS1="[\u@\h \W]\\$ "
index 35bbb924cb720fb6cb7a0e82561b2bacbc2e91b8..ea8f456caf2eefd4d124128799ff932d05d5d01f 100644 (file)
 # specification for the shell prompt. For details see:
 # https://uapi-group.org/specifications/specs/osc_context/
 
+# This file is "activated" through systemd-tmpfiles which links it into
+# /etc/profile.d/. To disable this, remove the
+# /etc/profile.d/80-systemd-osc-context.sh symlink and mask the
+# 20-systemd-osc-context.conf snippet (as root):
+#
+#   test -h /etc/profile.d/80-systemd-osc-context.sh && \
+#     rm -v /etc/profile.d/80-systemd-osc-context.sh && \
+#     ln -s /dev/null /etc/tmpfiles.d/20-systemd-osc-context.conf
+
 # Not bash?
 [ -n "${BASH_VERSION:-}" ] || return 0