From f7a36dee3ae2ab52df3067429ab1b35baec54eab Mon Sep 17 00:00:00 2001 From: Peter Vicman Date: Mon, 12 Oct 2015 19:14:51 +0200 Subject: [PATCH] projects/RPi*: use correct environment for serial console --- .../filesystem/usr/lib/systemd/system/serial-console.service | 3 ++- .../filesystem/usr/lib/systemd/system/serial-console.service | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/projects/RPi/filesystem/usr/lib/systemd/system/serial-console.service b/projects/RPi/filesystem/usr/lib/systemd/system/serial-console.service index d70e3df75f..5dffa1a843 100644 --- a/projects/RPi/filesystem/usr/lib/systemd/system/serial-console.service +++ b/projects/RPi/filesystem/usr/lib/systemd/system/serial-console.service @@ -5,7 +5,8 @@ ConditionKernelCommandLine=console [Service] WorkingDirectory=/storage -ExecStart=/bin/sh -c '. /etc/profile; exec /bin/sh' +Environment="ENV=/etc/profile" +ExecStart=/bin/sh Restart=always RestartSec=0 StandardInput=tty diff --git a/projects/RPi2/filesystem/usr/lib/systemd/system/serial-console.service b/projects/RPi2/filesystem/usr/lib/systemd/system/serial-console.service index d70e3df75f..5dffa1a843 100644 --- a/projects/RPi2/filesystem/usr/lib/systemd/system/serial-console.service +++ b/projects/RPi2/filesystem/usr/lib/systemd/system/serial-console.service @@ -5,7 +5,8 @@ ConditionKernelCommandLine=console [Service] WorkingDirectory=/storage -ExecStart=/bin/sh -c '. /etc/profile; exec /bin/sh' +Environment="ENV=/etc/profile" +ExecStart=/bin/sh Restart=always RestartSec=0 StandardInput=tty