From d0bb05189c840c95f5a4d3dcc08e5431a1621ca0 Mon Sep 17 00:00:00 2001 From: Trond Haugland Date: Sat, 29 Jun 2019 00:31:11 +0100 Subject: [PATCH] systemd: fix issues after #3326 /etc/98-busybox.conf configures the prompt and TERM. PR #3326 stopped sourcing /etc/profile, which meant the prompt no longer includes the HOSTNAME. Additionally, #3326 removed code which unhides the cursor. --- ...ystemd-0300-config-env-unhide-cursor.patch | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 packages/sysutils/systemd/patches/systemd-0300-config-env-unhide-cursor.patch diff --git a/packages/sysutils/systemd/patches/systemd-0300-config-env-unhide-cursor.patch b/packages/sysutils/systemd/patches/systemd-0300-config-env-unhide-cursor.patch new file mode 100644 index 00000000000..7405fa07e3f --- /dev/null +++ b/packages/sysutils/systemd/patches/systemd-0300-config-env-unhide-cursor.patch @@ -0,0 +1,27 @@ +From 49285dae6756b22bc6881c04939f7c43c35b5506 Mon Sep 17 00:00:00 2001 +From: MilhouseVH +Date: Sat, 29 Jun 2019 00:26:41 +0100 +Subject: [PATCH] debug-shell: configure environment, unhide cursor + +--- + units/debug-shell.service.in | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/units/debug-shell.service.in b/units/debug-shell.service.in +index 1127e68..4c3e971 100644 +--- a/units/debug-shell.service.in ++++ b/units/debug-shell.service.in +@@ -16,8 +16,8 @@ IgnoreOnIsolate=yes + ConditionPathExists=@DEBUGTTY@ + + [Service] +-Environment=TERM=linux +-ExecStart=@SUSHELL@ ++Environment=ENV=/etc/profile ++ExecStart=/bin/sh -c 'echo -en "\033[?25h"; exec /bin/sh' + Restart=always + RestartSec=0 + StandardInput=tty +-- +2.14.1 +