units: Tell login to preserve environment (#6023)
authorNikolai Kondrashov <Nikolai.Kondrashov@redhat.com>
Wed, 24 May 2017 11:58:01 +0000 (14:58 +0300)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 9 Jul 2017 14:53:31 +0000 (10:53 -0400)
commitdb6aedab9292678918f15807a0d835be35511667
tree8952df57dabd1de3a43d4ebce5654cd9369b4ef5
parent4c4bc54697d8dc425a90c22cd725da5852e18022
units: Tell login to preserve environment (#6023)

Make agetty started by *getty* units pass '-p' option to "login", so it
doesn't clear the environment and passes whatever was setup by systemd
to shells. This is needed especially for programs which are specified as
user shells, but won't read locale settings from anywhere but
environment.

[zj: cherry-pick just the second patch from the series, see discussion
on the pull request.]
units/console-getty.service.m4.in
units/container-getty@.service.m4.in
units/getty@.service.m4
units/serial-getty@.service.m4